You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Maciej Jaros (Jira)" <ji...@apache.org> on 2021/03/25 14:36:00 UTC
[jira] [Created] (NETBEANS-5496) Optional chaining (?.) support
Maciej Jaros created NETBEANS-5496:
--------------------------------------
Summary: Optional chaining (?.) support
Key: NETBEANS-5496
URL: https://issues.apache.org/jira/browse/NETBEANS-5496
Project: NetBeans
Issue Type: New Feature
Components: editor - Parsing & Indexing
Affects Versions: 12.3
Reporter: Maciej Jaros
Attachments: image-2021-03-25-15-33-58-344.png
Optional chaining is supported by all major browsers. Please add support for it in Netbeans.
Currently NB shows "Expected operand" error and other things might brake in the file too.
Example:
{code:java}
class TestClass {
getValue() {
return null;
}
getSubmitValue() {
return this.getValue()?.join(',');
}
}{code}
See also:
[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining]
In NB 12.3:
!image-2021-03-25-15-33-58-344.png!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists