News for hackers. Stuff that matters.
Re:Maybe comments should explain 'what' (2017) by ulbu on Sunday January 04, 2026 @08:59AM (#46488028)
we tend to talk about type composition, but values too are composed. this suggestion makes the composition clear and, imo, is strictly better that a hardcoded resulting value. even more so if we assign it using some blocks-with-returns feature, if the language has it: we can clarify that the value’s components are not used elsewhere and thus reduce complexity of the namespace. without such feature, I’m not sure complicating the namespace is worth it, and a comment may actually be better.

There are no comments on this comment yet.