Sujet : Re: on Perl
De : commodorejohn (at) *nospam* gmail.com (John Ames)
Groupes : comp.unix.programmer comp.lang.misc comp.unix.shellDate : 17. Apr 2024, 20:19:09
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240417121909.000039a3@gmail.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
User-Agent : Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
On Wed, 17 Apr 2024 21:05:03 +0200
David Brown <
david.brown@hesbynett.no> wrote:
Another thing about Forth is that it gives C a run for its money in
potential for obfuscation :
: 1 2 ;
1 1 + .
Redefine "1". That'll keep the reader on his/her toes!
Redefinitions *stack,* too, so "foo" can mean multiple completely
different things in different contexts depending on which definition
was current at the time.
: foo 2 * ;
: double foo ;
3 foo .
: foo 1 + ;
3 foo .
3 double .
Genuine Forth-heads do staggering things (implementing OOP, etc.) with
this; personally, it gives *me* the willies.