And other downfall. Do they still not work with DOTNET Core??
But this is also it’s greatest strength. Having direct, type-safe access to structured data is truly awesome. What else compares? Certainly not conventional code gen.
Java has what looks like SQLx on steroids with the manifold project coming down the pike.
https://github.com/manifold-systems/manifold/blob/master/man...
> How do Source Generators compare with Type Providers in F#?
> If you’re an F# programmer (or familiar with the language), then you might have heard of Type Providers. Source Generators were inspired in part by Type Providers, but there are several differences that make them distinct. The main difference is that Type Providers are a part of the F# language proper and emit types, properties, and methods in-memory based on an external source. Source Generators are a compiler feature that analyzes C# source code, optionally with other files, emits C# source code to include back into a compilation.
https://devblogs.microsoft.com/dotnet/introducing-c-source-g...
Edit: sample here with a JSON template: https://github.com/CharlieDigital/dn7-source-generators
> For Schema.NET, we do a HTTP request to get the JSON we need to build
https://turnerj.com/blog/the-pain-points-of-csharp-source-ge...
Also phillipcarter says yes so I'll happily take his view over mine.
Syntax is of course subjective but to my eyes it's cleaner in F#.
Idk. Don't want to start a war but rather hear specific arguments for why you like OCaml more.