3 ms·
> Imperative programming with state is as simple as functional programming without state. No it's not, objectively speaking. You're confusing simplicity with f
by epgui 3y ago
> Imperative programming with state is as simple as functional programming without state.
No it's not, objectively speaking. You're confusing simplicity with familiarity.
- c_crank 3y agoChanging a variable is simple. Creating multiple layers of indirection to change a variable in a pure fashion is not as simple. That should be obvious and apparent.
- TuringTest 3y agoIt only appears simple because the layers of complexity to achieve that effect are hidden under the language runtime, and you're exposed to just the top of the iceberg. If you had to build the whole runtime yourself from first principles, functional behaviour would be way simpler to define.
- c_crank 3y agoA functional runtime from top to bottom is simple on a FPGA. It's also pretty useless. A circuit with no memory that does the same thing each time. Pretty good for a light switch, but not the kind of things people want computers for.