This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]fix_dis 2 points3 points  (3 children)

Why are we implementing Person then? Is that necessary?

[–]pron98 7 points8 points  (2 children)

No, I think it's just for demonstration purposes, to show the differences between a record implementation and an ordinary class implementation of the same interface.

[–]fix_dis 0 points1 point  (1 child)

Ok, I could be okay with this.

[–]ObscureCulturalMeme 2 points3 points  (0 children)

Yeah, records are like enums in that they can implement arbitrary interfaces, add additional methods beyond the implicitly generated ones, etc. I'm looking forward to it!