Re:Show HN: A small programming language where everything is...
by zahlman on Sunday January 25, 2026 @10:20PM
(#46761487)
Why exactly is imperative syntax "convenient" specifically in the context of inter-thread communication?
[ Parent
| on HN ]
Re:Show HN: A small programming language where everything is...
by ddtaylor on Sunday January 25, 2026 @10:49PM
(#46761670)
He's likely referencing that you would need to use different syntax and style, like re-assigning a variable or chaining calls, like when working with a String in Java.
In C, you can simply mutate the underlying characters. So changing the fifth character in a string is as easy as:
str[4] = 0;
Whereas using the immutable syntax you might have to do something like: str = str.substr(0, 4) + "\0" + str.substr(4);