Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add F# code generator to the compiler #607
I propose we add to the compiler services the feature to generate F# code from an existing TAST.
Such a feature is used for either Code-Injection or simple code generation for cases where additional dependencies are preferred to be minimum. Moreover it also suits for cases where Type-Providers would just be like taking a sledgehammer to crack a nut.
An article about what I'm talking is here.
Of course a simple generator could be placed into a community driven repository fully unattached to the compiler. However, I think as it would be part of the compiler it would most likely have a better quality and better stability. Moreover it would integrate very fine with the existing constructs and prevent introducing similar ones which already exist in the compiler (which might be not usable from outside of the compiler). As Roslyn supports a similar feature I would consider it to be fundamental. Finally, I think that implementing this would converge with the two running PR's to the repository.
The disadvantages of making this adjustment is just that it's more code in the compiler and work to do.
Estimated cost (XS, S, M, L, XL, XXL): S/M
Related suggestions: Don't know one. Ping me if I'm wrong.
Affidavit (please submit!)
Please tick this by placing a cross in the box:
Please tick all that apply: