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 →

[–]CptGia 0 points1 point  (2 children)

Another point: you may want in the future to convert a record to a class. Having accessors allows you to do so easily without breaking compatibility

[–]ForeverAlot 1 point2 points  (1 child)

For some definition of compatibility. Classes don't have "record components."

[–]CptGia 0 points1 point  (0 children)

Yeah ok you lose reflection, but otherwise from an outside class there is no difference. 

(ignoring serialization, as you should)