Author Login
Post Reply
> pexatus wrote:
> I want to use the safe dereference operator, but it does not
> work with the subscript operator. In other words, I want
> to do this;
>
> if (map['a']?['b'] != null) {
> // process map['a']['b']
> }
Hm, I wonder what would happen with
assert ["1":["de":"eins", "en":"one"]]["2"]?["en"] : "not in map"
if the language would support such an operator :)
--
Alex
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email