Re: [Vala] Safe call operator



This can induce hard to debug errors.
For example, something should raise an error or an execption now may return
0 only.
This return value might accidentally be used by other parts of the program.
When the project become larger, it's hard to trace this bug.

On Tue, Jan 31, 2012 at 11:27 PM, Artem Tarasov
<lomereiter googlemail com>wrote:

As a starter, Java rejected that syntax.

Yeah, but in Java at least a NullPointerException is thrown when null
dereferencing occurs. In Vala the only option to provide null-safety
is explicit checking for null after each method call in a chain.
_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]