3 ms·
Yes, please make me hit three keys instead of one just to make an assignment.
by drharris 13y ago
Yes, please make me hit three keys instead of one just to make an assignment.
- cpeterso 13y agoIt's still better than Java's `if (string1.equals(string2))`.
- codyb 13y agoIt would be interesting to see whether assignments or equality operations are performed more often across the board in programming. I can't tell which way my initial lean would be. := certainly makes things syntacticly clearer but really after a point = and == are so common and so natural, is it a problem that even needs to be solved?
- lmm 13y agoMutation/reassignment should be a rare thing that takes conscious effort, since it makes the code much harder to understand and reason about.