Comment by zahlman
8 hours ago
Why exactly is imperative syntax "convenient" specifically in the context of inter-thread communication?
8 hours ago
Why exactly is imperative syntax "convenient" specifically in the context of inter-thread communication?
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:
Whereas using the immutable syntax you might have to do something like:
Well, yes, that's how it becomes convenient in general. But why would you be doing things like that when communicating between threads?