Smalltak [RE: Whitespace as syntax (was Re: Python Rocks!)]

Gerrit Holl gerrit.holl at
Sun Feb 13 15:59:51 EST 2000

Aahz Maruch wrote on 950463201:
> In article <000301bf75f6$34eb3e60$962d153f at tim>,
> Tim Peters <tim_one at> wrote:
> >[Aahz Maruch]
> >>
> >> Would make it a lot easier to do, say,
> >>
> >> def foo(bar):
> >> 	print bar
> >>
> >> foo(a;b;c)
> >
> >Since it's unclear why that's an interesting thing *to* do, I'm not sure why
> >it would be an advantage to make it easier to do it <wink>.
> Here's (what I hope is) a slightly clearer example:
> def foo ( bar, baz ) :
> 	print bar
> 	print baz
> foo ( a;b;c, d ) # doesn't work
> foo ( (a,b,c), d )
> I find the former to be clearer; I'm uncomfortable with the idea that
> arguments to a function are necessarily tuples (which is what the
> current syntax implies).

I find this clearer:

foo({a,b,c}, d)

The same characters are used as with dictionaries, but the
difference is clear... Especially for singleton tuples, no
awful trailing ',' is needed.

But we're a decade too late, I'm afraid!


Version: 3.12
GCS dpu s-:-- a14 C++++>$ UL++ P--- L+++ E--- W++ N o? K? w--- !O
!M !V PS+ PE? Y? PGP-- t- 5? X? R- tv- b+(++) DI D+ G++ !e !r !y
-----END GEEK CODE BLOCK----- moc.edockeeg.www//:ptth

More information about the Python-list mailing list