Sujet : Re: "The Best Programming Language for the End of the World"
De : anton (at) *nospam* mips.complang.tuwien.ac.at (Anton Ertl)
Groupes : comp.lang.forthDate : 15. Apr 2025, 22:59:21
Autres entêtes
Organisation : Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID : <2025Apr15.235921@mips.complang.tuwien.ac.at>
References : 1 2 3 4 5 6 7
User-Agent : xrn 10.11
mhx@iae.nl (mhx) writes:
1_0 2_0 + . \ output: 30
>
Sorry, I really don't like this. It takes away my
underlying mental model of how things should work.
What happens for "10_ 20_ + ." ?
It outputs 30, too. The intended use of _ in Gforth is like this:
100_000_000_000 20_000_000_000 + . \ outputs 120000000000
or with groups of 4 for those environments where that is conventional.
What does your underlying mental model say how things should work?
- anton
-- M. Anton Ertl http://www.complang.tuwien.ac.at/anton/home.htmlcomp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html New standard: https://forth-standard.org/EuroForth 2023 proceedings: http://www.euroforth.org/ef23/papers/EuroForth 2024 proceedings:
http://www.euroforth.org/ef24/papers/