Re: Lisp/Unix impedance [a programming challenge]
- From: Kalle Olavi Niemitalo <kon@xxxxxx>
- Date: Sat, 30 Apr 2005 11:54:25 +0300
David Steuber <david@xxxxxxxxxxxxxxxxx> writes:
> However, how do you explain this oddity in a language that
> values the principle of least surprise?
I'll be surprised if Perl is such a language.
> $ perl -e 'print "true\n" if ("1" == 1);'
> true
$ perl -we 'print "true\n" if ("1 apple" == "1 orange");'
Argument "1 orange" isn't numeric in numeric eq (==) at -e line 1.
Argument "1 apple" isn't numeric in numeric eq (==) at -e line 1.
true
.
- References:
- Lisp/Unix impedance [a programming challenge]
- From: Adam Warner
- Re: Lisp/Unix impedance [a programming challenge]
- From: Adam Warner
- Re: Lisp/Unix impedance [a programming challenge]
- From: Christophe Rhodes
- Re: Lisp/Unix impedance [a programming challenge]
- From: Adam Warner
- Re: Lisp/Unix impedance [a programming challenge]
- From: Christophe Rhodes
- Re: Lisp/Unix impedance [a programming challenge]
- From: Adam Warner
- Re: Lisp/Unix impedance [a programming challenge]
- From: David Steuber
- Lisp/Unix impedance [a programming challenge]
- Prev by Date: Re: What next after 'Practical' ??
- Next by Date: Re: Comparing Lisp conditions to Java Exceptions
- Previous by thread: Re: Lisp/Unix impedance [a programming challenge]
- Next by thread: Re: Lisp/Unix impedance [a programming challenge]
- Index(es):
Relevant Pages
|