-
Notifications
You must be signed in to change notification settings - Fork 27
create froto.exe #11
Comments
What is the advantage of using FsAst for code generation over, say, just a bunch of printf statements? Seems like the latter would create far less code noise and would be considerably easier to maintain... Plus, you're already considering using Roslyn for run-time code generation (or for fueling a Type Provider). I've seen one project which uses XSLT, but that suffers the same complexity problem: not very easy to read and maintain... |
I get why you'd like to have a back-end to generate Proto.net code (from what I've heard, their proto-first solution is not straight-forward to use). But, why add a dependency on Google.Protobuf? What functionality does it bring that wouldn't be better to reimplement directly in F#? Or, conversely, if someone is already using Google.Protobuf (and the associated C# compiler), why would they use Froto? Finally, while I haven't looked at the Google code closely, John Skeet stated that adding proto2 to the current C# codebase would add lots of complexity (implying it cannot do so currently). |
using FSharp.Core from NuGet Gallery
I've created To use the NuGet feed from AppVeyor, just add: |
The idea is to create a
froto.exe
that is similar toprotoc.exe
in that it reads in a .proto file and generates source code. There may be a few different source code generators, including:Just for information, the
protoc.exe
in Google.Protobuf 3.0.0-beta2 has this help:The text was updated successfully, but these errors were encountered: