Re:Show HN: A JavaScript function that looks and behaves lik...
by amadeuspagel on Wednesday September 27, 2023 @09:04AM
(#37674053)
What if it isn't a message? What if "msg" is already used for another variable?
Re:Show HN: A JavaScript function that looks and behaves lik...
by afavour on Wednesday September 27, 2023 @09:07AM
(#37674113)
This is some wonderful performance art you’re doing here
Re:Show HN: A JavaScript function that looks and behaves lik...
by Bjartr on Wednesday September 27, 2023 @09:47AM
(#37674606)
`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?
Re:Show HN: A JavaScript function that looks and behaves lik...
by wruza on Wednesday September 27, 2023 @02:04PM
(#37678634)
Frankly, 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.
Re:Show HN: A JavaScript function that looks and behaves lik...
by rickstanley on Wednesday September 27, 2023 @10:17AM
(#37675012)
"_msg", then.
You don't have to write something like "this is the message", you can see it.