Eiffel better than Python ?

Aahz Maruch aahz at panix.com
Wed Jul 4 02:56:53 EDT 2001


[excessive quoting ahead]

In article <slrn9k5efg.ru.tim at vegeta.ath.cx>,
Tim Hammerquist <tim at vegeta.ath.cx> wrote:
>Aahz Maruch <aahz at panix.com> wrote:
>> In article <qRq07.9790$Wc.6458460 at nnrp4.proxad.net>,
>> Dublanc, David <ddublanc at free.fr> wrote:
>>>
>>>What is exactly weak typing ? I believed that Python was weak typing !
>
>For those that don't know what this does:
>
>> perl -e "print '1' + '1'"         
>
>This applies Perl's addition operator to two "strings" composed of digits.
>Returns 2.
>
>> perl -e "print 1 . 1"
>
>This applies the concatenation operator to two constant numbers.
>This returns 11.
>
>This is due to Perl's (intentional) conversion between numbers and
>strings when context (a very important Perl concept) implies it.
>
>You may not agree with this, but it's a matter of personal preference.
>It should not involve the preference of a strange author bashing some
>other language.

Pointing out that Perl has weak typing does not equate to language
bashing.
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Hugs and backrubs -- I break Rule 6                 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista   

"I'm not tense, i'm just terribly, terribly alert"  --unknown



More information about the Python-list mailing list