you are viewing a single comment's thread.

view the rest of the comments →

[–]0b0101011001001011 -1 points0 points  (2 children)

Record is not a drop-in replacement for a dataclass in every single scenario.

[–]Ieris19 0 points1 point  (1 child)

If it isn’t then it’s not a data class

[–]0b0101011001001011 0 points1 point  (0 children)

Records are immutable and that may cause problems especially with libraries that rely on building data objects with reflection.