Re:Show HN: Cosh – concatenative command-line shell
by gpderetta on Tuesday January 17, 2023 @01:24PM
(#34416399)
Because that's the very definition of a concatenative language.
[ Parent
| on HN ]
Re:Show HN: Cosh – concatenative command-line shell
by JadeNB on Tuesday January 17, 2023 @02:48PM
(#34417713)
I don't think that there's anything inherent about concatenative languages that forces them to be postfix. The Wikipedia definition (not authoritative, surely, but one we can all access) is:
> A concatenative programming language is a point-free computer programming language in which all expressions denote functions, and the juxtaposition of expressions denotes function composition.
As long as all functions are fixed arity—admittedly a serious limitation—there doesn't seem obviously to be any reason you couldn't write the function first (though of course it's fair to ask why you would want to).
Re:Show HN: Cosh – concatenative command-line shell
by cyberbanjo on Tuesday January 17, 2023 @03:07PM
(#34418065)
Om is a prefix concatenative language
Re:Show HN: Cosh – concatenative command-line shell
by gpderetta on Wednesday January 18, 2023 @10:05AM
(#34427469)
I associate concatenative languages with stack languages, which means that the postfix syntax is obvious. But as the sibling comment mentioned, that doesn't necessarily need to be the case.