3 ms·
Yes it is. Assignment is another word for writing state. If your programming environment doesn't include a way to set state, you will never do it. Why is doing
by yjgyhj 10y ago
Yes it is. Assignment is another word for writing state. If your programming environment doesn't include a way to set state, you will never do it. Why is doing the dangerous task of writing state so easy you just have to hit one key to do it in C++?
Let's collectively put our seat belts on, colleagues!
- caf 10y agoThe bug here was a lack of writing state!
- yjgyhj 10y agoSorry for being unclear. In my timezone it's pretty late. If there was not state, the coder wouldn't had tried to set it. I don't think a language needs to have the `=` operator easy and close at hand. Had that not been the case, this bug (and oh so many others) would never had existed.
- mbrock 10y agoEven in Haskell, writing state is as easy as += or <- and this is used in nearly every actual program. A cryptocurrency implementation like this doesn't need a language that makes state impossible. It needs static analysis, model checking, and proofs. This would be true even if it were written in your favorite functional language.