digitalmars.D - Re: Suggestion: Syntactic sugar for Exception handling in D2
- Ulrik Mikaelsson <ulrik.mikaelsson gmail.com> Jun 23 2009
If it's braces you're concerned with, D doesn't actually require them on try/catch/finally like many other languages:
Writing braces is even done automatically by some editors, but thinking of exception handling as a natural part of a method (just like in/out contracts are part of the method, and unittests/invariants are a natural part of a class). It's about how the language encourages the developer to think about certain aspects, and that is of course almost impossible to really assess the value of.
Jun 23 2009