[ https://issues.apache.org/jira/browse/JEXL-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17532992#comment-17532992 ]
Dmitri Blinov edited comment on JEXL-369 at 5/6/22 5:18 PM: ------------------------------------------------------------ So, to sum up, what should we expect (in non-lexical mode)? Case 1 {code:java} var x = 1; // allowed let x = 2; // disallowed {code} Case 2 {code:java} let x = 1; // allowed var x = 2; // disallowed {code} Case 3 {code:java} let x = 1; // allowed { let x = 2; // disallowed } {code} Case 4 {code:java} { let x = 1; // allowed var x = 2; // allowed } {code} Case 5 {code:java} { let x = 1; // allowed } var x = 2; // allowed {code} Right? In lexical mode there should be no difference between var and let, I guess. was (Author: dmitri_blinov): So, to sum up, what should we expect (in non-lexical mode)? Case 1 {code:java} var x = 1; // allowed let x = 2; // disallowed {code} Case 2 {code:java} let x = 1; // allowed var x = 2; // disallowed {code} Case 3 {code:java} let x = 1; // allowed { let x = 2; // disallowed } {code} Case 4 {code:java} { let x = 1; // allowed var x = 2; // allowed } {code} Right? In lexical mode there should be no difference between var and let, I guess. > Add 'let' and 'const' variable declarations > ------------------------------------------- > > Key: JEXL-369 > URL: https://issues.apache.org/jira/browse/JEXL-369 > Project: Commons JEXL > Issue Type: Improvement > Affects Versions: 3.2.1 > Reporter: Henri Biestro > Assignee: Henri Biestro > Priority: Major > Fix For: 3.3 > > > WHAT: > Add creation of lexical scope variables, modifiable with 'let', > non-modifiable through 'const'. -- This message was sent by Atlassian Jira (v8.20.7#820007)