Tango Conference 2008 - MiniD talk by by Jarrett Billingsley.

bearophile bearophileHUGS at lycos.com
Mon Oct 6 03:34:13 PDT 2008


Peter Modzelewski:
> slides: http://team0xf.com/conference/minid.pdf

Quite nice.

I see no semicolons, I presume D sources too can spare them :-)

Multivalues seems dangerous, they look like the auto-flattening things of Perl. I think I don't like them. I like true tuples plus the * (apply) syntax of Python better to do similar things.

This:
global x, y, z = freep() // they are 1, 2, 3
writeln(freep()) // writes 123
global a = [freep()] // a is [1, 2, 3]

In Python becomes about as:
x, y, z = freep() // they are 1, 2, 3
a = [freep()] // a is [(1, 2, 3)]
somefunc(*freep()) // somefunc called with 3 arguments

Bye,
bearophile


More information about the Digitalmars-d-announce mailing list