▲ 90 ▼ Typing is not a programming bottleneck (blog.ploeh.dk) submitted 2 years ago by canpolat@programming.dev to c/programming@programming.dev 43 comments fedilink hide all child comments
[–] CatPoop@lemmy.world 12 points 2 years ago (1 child) Assuming this is C#, you could just make Reservation a record type, which can be defined with a one line primary constructor, is immutable and has value type equality. Second example is an insane amount of boilerplate. permalink fedilink source hideshow 2 child comments replies: [–] copygirl@lemmy.blahaj.zone 3 points 2 years ago And you can use the with expression to create clones of the object with some properties modified. permalink fedilink source parent
[–] copygirl@lemmy.blahaj.zone 3 points 2 years ago And you can use the with expression to create clones of the object with some properties modified. permalink fedilink source parent