5 ms·
I always wondered how programming would be if we hadn't designed the assignment operator to be consistent with mathematics, and instead had it go LHS -> RHS, i.
by hliyan 2y ago
I always wondered how programming would be if we hadn't designed the assignment operator to be consistent with mathematics, and instead had it go LHS -> RHS, i.e. you perform the operation and then decide its destination, much like Unix pipes.
- RodgerTheGreat 2y agoPlenty of LTR languages to choose from, especially concatenative languages like Forth, Joy, or Factor. The APL family is similarly consistent, except RTL.
- donatj 2y agoTI-BASIC is like this with its store operator →. I always liked it. 10→A A+10→C
- remram 2y agoFor function calls too? List the arguments then the function's name?