Conclusions of the exception discussion
bearophile
bearophileHUGS at lycos.com
Sun Feb 26 12:29:53 PST 2012
Timon Gehr:
> Do you realize that syntactic sugar improvements are trivial to
> implement (just re-write the AST a little), and have almost no influence
> on the existing code base?
In my opinion it's good to have a syntax to catch a many exceptions "at once".
But this is yet another special syntax case for a sequence of things, where instead a built-in tuple syntax is more uniform and better. Tuples are a data structure more fundamental and more important than associative arrays.
In Python this syntax caused troubles:
http://www.python.org/dev/peps/pep-3110/
Bye,
bearophile
More information about the Digitalmars-d
mailing list