canpolat@programming.dev to Programming@programming.devEnglish · 2 years agoTyping is not a programming bottleneckblog.ploeh.dkexternal-linkmessage-square27linkfedilinkarrow-up174
arrow-up174external-linkTyping is not a programming bottleneckblog.ploeh.dkcanpolat@programming.dev to Programming@programming.devEnglish · 2 years agomessage-square27linkfedilink
minus-squareCatPoop@lemmy.worldlinkfedilinkEnglisharrow-up8·2 years agoAssuming 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.
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.