Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
In the line of code with long chain calls not only nulls can ruin all this. Exceptions too.
So it would be cool to have something like
obj.trySomeMethod()?.field
where obj have only someMethod and trySomeMethod added automatically.
Or maybe something like obj.?someMethod()?.field
it will return null on any exception