4 ms·
I’m not impressed by this design choice. When order of declaration matters, it ceases to be declarative. “Let there be a function” is instead “make me a functi
by sshine 3y ago
I’m not impressed by this design choice.
When order of declaration matters, it ceases to be declarative. “Let there be a function” is instead “make me a function”.
It’s entirely unnecessary, and even JavaScript can let you run a function that gets declared later.
The advantage when order does not matter inside the module is that you can list big things at the top of the file and the smaller things it’s made of below, rather than opposite.
The advantage when order does not matter outside the module system is that you can have mutually recursive modules.
- deleted 3y ago[deleted]