Amadeusz Sadowski

Results 179 comments of Amadeusz Sadowski

I've also came up with an even more complex approach. We'd generate a new nested class called `Updater/Rebuilder/DeltaBuilder`: ```csharp // written public partial class Person { public string Name {...

> Why do you use the 'Update' method? I think originally it was to support the inheritance, but then inheritance support was removed and Update stayed.

Yeah, the balance is hard to find. For allocation-ignoring usages, just calling several With's isn't an issue: `person.WithAge(22).WithName("Joe");` It's clear, nice and all. When allocations and copying matters (probably on...

Yeah, lenses are a new concept I just recently discovered when browsing through https://github.com/louthy/language-ext It's a cool concept but I'd say this actually deserves another issue completely. And I'd consider...

I'm following the discussion and have read the proposal. However, I do not see where our generator could help. Most of the features discussed require new syntax, at least. Do...

Appreciate the interest. I'd love to discuss things like that, and indeed gitter may be a good medium - although the issue here will probably have a larger audience, so...

Found a problem as well, GeneratedCodeAttribute isn't applied on generated operator overloads (`==/!=`) *edit: moved to #77*

`operator ==` should defer to direct `left.Equals(right)` call instead of using `EqualityComparer`. This could be an optimization when we know we implement `ObjectEquals` and/or `EquatableEquals`. If not, we *could* probably...

Hi. I haven't used `dotnet asp-codegenerator`, but indeed indeed, there will always be issues when you use two different code generation frameworks. RecordGenerator uses `CodeGeneration.Roslyn` underneath: https://github.com/AArnott/CodeGeneration.Roslyn I won't have...

Gist taken from https://github.com/dotnet/csharplang/issues/3174#issuecomment-584900188