-
Notifications
You must be signed in to change notification settings - Fork 288
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
Idea: Add CE Builder for Json erased types (as they are not records and with is missing) #1425
Comments
@jkone27 would you be interested in submitting a PR with a proposed implementation? |
i could give it a try but i have not much idea where to start 😆, i did this (see below) once to add "copy mutation" to JsonProvider erased type, but ofc it's quite hacky and messy... https://github.com/jkone27/FSharp.Data.Mutator so i thought a similar approach could make it easier to work with and maybe useful in general for other erased types too? |
In the topic of possibly extending Fsharp.Data, which one would be the easiest option between these as per implementation ? Pros/cons/possible
|
one way i could add an optional setter code, this wouldn't require the overcomplication of adding the CEs methods (with CustomOperationAttribute) maybe... (https://gist.github.com/odytrice/313b2107f6ad52de12ae89f35941d4b2) |
Would be pretty useful to have CE builders for erased type, e.g. JsonProvider provided types, as they are immutable and using the full constructor is annoying especially for big objects...
instead of
do..
The text was updated successfully, but these errors were encountered: