Front page | perl.perl6.language |
Postings from September 2002
Re: Regex query
From:
Pixel
Date:
September 22, 2002 06:22
Subject:
Re: Regex query
Message ID:
lyr8fmgo05.fsf@leia.mandrakesoft.com
Chip Salzenberg <chip@pobox.com> writes:
> According to David Whipp:
> > (7,8,9) == 3 # true
> > (7,8) == 2 # true
> > (7) == 1 # false
> > () == 0 # true?
>
> Hell, yes, why didn't I think of that? This is exactly the same
> problem that afflicts Python's tuple syntax!
various 1-uple syntaxes:
a or [a] Ruby
a, Python
tuple([a]) Python
(a) Perl
((a)) merd
{a} Smalltalk
"http://merd.net/pixel/language-study/syntax-across-languages.html#Various Data Types"