4 ms·
In this case the variable is the documentation of the code. You don't have to write something like "this is the message", you can see it.
by progx 3y ago
In this case the variable is the documentation of the code.
You don't have to write something like "this is the message", you can see it.
- amadeuspagel 3y agoWhat if it isn't a message? What if "msg" is already used for another variable?
- afavour 3y agoThis is some wonderful performance art you’re doing here
- Bjartr 3y ago`greetingMsg`? `greeting`? Naming the other one differently? Splitting the work done with that message and the work done with this message into their own functions?
- wruza 3y agoFrankly, this always sounded like a readability issue seeking a readability problem. Splitting because the names clash, because you decided to name things, because a one-liner was less than ideally readable.
- rickstanley 3y ago"_msg", then.