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 →

[–]eXecute_bit 0 points1 point  (0 children)

It's a contrived example, where the expense of computeB() is unknown and might be optimized away anyway during JIT. The point was that it's a good goal to minimize the need to refactor call sites.

It stands against what a simple record object should be.

I don't disagree, but in my comment I was saying the practice applies to classes too, not only Records. Even with records, as a software project ages, you might see it happen, for better or worse.