6 ms·
Why would the opposite be better? Aren't most functions impure? The original proposal made sense to me, but I am curious as to why you believe impure is better.
by castrodd 4y ago
Why would the opposite be better? Aren't most functions impure? The original proposal made sense to me, but I am curious as to why you believe impure is better. Can you elaborate?
- andreareina 4y agoPure being the default would lead to most functions being written to be pure. Same idea as immutability by default.
- deleted 4y ago[deleted]
- goto11 4y ago> Pure being the default would lead to most functions being written to be pure. More likely it would lead to most functions looking like they are pure, whether they are actually pure or not. For example, any function written before the "impure" modifier was introduced would look pure.