Re: [stack] impure concatenativity: let without translation

"Daniel Ehrenberg" <[email protected]>
Newsgroups gmane.comp.lang.concatenative
Message-ID <[email protected]>
>  Naive question: Is there any reason why concatenative languages are
>  (uniformly) postfix? Would prefix work just as well, pushing elements onto
>  the stack from right to left?
>
>
>  --Joe

Naive answer: prefix is readable for simple things, but when things
like "swap" are included, it gets more awkward to do prefix. It ends
up that you're reading things backwards. Neither prefix nor postfix
allows a completely left-to-right reading, but in my experience,
postfix has things *mostly* left-to-right once you're comfortable with
the language. Anyway, if the program is broken up into small units, it
doesn't matter what order things are in! And concatenativity, whether
in prefix or postfix, makes this much easier.

Dan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.