-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revamp code generator #36
Labels
Comments
Is the idea to use T4? |
Or something like this:
|
Labeled for net-gen client and closing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We've been avoiding tweaking code generator much in recent years because it's fairly hard to make non-trivial changes. As a result it is much harder to refactor the rest of the library because we depend on the existing
ModelBase
hierarchy and responsibility scope heavily.Now that we require .NET 4.0, we can investigate Expression Trees. The idea of using F# has came up a few times in the past (for templating, implementing
ModelBase
in F# and relying e.g. on Code Quotations will likely suffer from the law of diminishing returns in our case).Specific points of improvements we should aim for:
ModelBase
ModelBase
into smaller partsSince the code generation artefacts are not exposed to end users, we can make breaking changes there but preserving .NET and Mono compatibility is a must.
The text was updated successfully, but these errors were encountered: