fsharp / fsharp/fslang-suggestions
Syntactically describe dependencies between files (by using '#requires', '#load' or extending 'open' syntax)
- Dominant language
- No language data
- Stars
- 373
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
**Submitted by Daniel Bradley on 8/20/2014 12:00:00 AM**
**7 votes on UserVoice prior to migration**
With F# becoming more and more multi-editor and cross-platform, it is becoming increasingly difficult to teach all build/edit tools about F#'s file order. The F# community are currently struggling to "update" each new build/edit tool to understand that F# actually needs a file order.
Part of the problem is that there is no standard textual way to specify this file order except as command line arguments, and these are not stored in an editable form. There is no standard way to specify the F# file order. We need an (optional) solution to this problem that is closer to home and doesn't involve modifying build/edit tools.
This proposal is one of three alternatives to deal with this problem in the F# language/compiler itself.
The specific proposal covered by this UV entry is to use #requrie declarations within files to specify a file order
```fsharp
# require "Helpers.fs"
```
Then, the compiler could automatically infer the dependencies between the files and not require files to be passed in pre-ordered by least dependent first.
Related alternative
* Keep a file order, but optionally have it specified by a fileorder.fsx or fileorder.txt or fileorder.json
**[Original UserVoice Submission](https://fslang.uservoice.com/forums/245727-f-language/suggestions/6323146)**
[Archived Uservoice Comments](../tree/master/archive/suggestion-6323146-syntactically-describe-dependencies-between-files.md#comments)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.