4 ms·
I'm not sure about mixing prefix (for functions), infix (for operators) and postfix (for pipelines) notation in the same languaqe. Does having all three in the
by mhandley 9y ago
I'm not sure about mixing prefix (for functions), infix (for operators) and postfix (for pipelines) notation in the same languaqe. Does having all three in the same language actually help readability? If you really want to read things forward, you could always adopt forth, where everything is postfix:
foo do_this_first then_do_this this_must_absolutely_be_last
No need for pipelines when you've got a stack.
- tom_mellior 9y ago> you could always adopt forth Yes, but that would be throwing the baby out with the bathwater. Just because of a single operator that I'm not sure is useful in a language I'm otherwise satisfied with. > where everything is postfix Except for parsing words, which are commonly used to change exactly this property of the syntax, no? The fact that postfix is nice in many cases does not imply that postfix is always a good idea.
- Sean1708 9y ago> postfix (for pipelines) Isn't the pipeline operator infix?