3 ms·
> other F# script files This is where it breaks down a bit. Importing the same script file twice leads to errors, so you must manually ensure exactly once imp
by greener_grass 2y ago
> other F# script files
This is where it breaks down a bit.
Importing the same script file twice leads to errors, so you must manually ensure exactly once imports across your dependency tree of scripts.
This is where C/C++ code reaches for include guards, but F# does not have a define pre-processor command (unlike C#).
- neonsunset 2y agoFair. I think if this issue takes place - it's probably time to switch from script files to a full .NET project. Or package a distinct piece of functionality as such.
- greener_grass 2y agoThere's no good reason FSI can't be improved to handle this though
- neonsunset 2y agoIf you're interested, you could further raise this on F# discord server or in https://github.com/dotnet/fsharp https://github.com/dotnet/fsharp, F# is effectively a community-managed language so if there's a particular change you'd like to see, there is a high chance you can just make it happen if you have time to see it through.