Sujet : Re: "The Best Programming Language for the End of the World"
De : no.email (at) *nospam* nospam.invalid (Paul Rubin)
Groupes : comp.lang.forthDate : 16. Apr 2025, 01:32:34
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <87plhdq731.fsf@nightsong.com>
References : 1 2 3 4 5 6 7 8
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
What happens for "10_ 20_ + ." ?
It outputs 30, too. The intended use of _ in Gforth is like this:...
What does your underlying mental model say how things should work?
One model is to ignore _ as gforth appears to. Another is that _ is a
separator character, ignored when it appears between two digits, but
meaningful or an error at the starting or ending position. That is how
Python 3 appears to work. 1_0 is the same as 10, but 10_ is a syntax error.