3 ms·
You do have some tooling support for ordering files in VS and VSCode using Ionide. It is also not always the case that there is a right way to order the files a
by Paradigma11 3y ago
You do have some tooling support for ordering files in VS and VSCode using Ionide. It is also not always the case that there is a right way to order the files and checking all permutations would get expensive fast. Basically, in F# that is part of the design process and helps you a lot later since you can just read the code in a linear way the same way the compiler does and not miss anything.
You do get the same information in the IDE from intellisense.
- sshine 3y agoI’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]