Optional Curly Braces in JavaScript

Ed Saleh medozs at outlook.com
Sat Nov 2 18:34:50 UTC 2019


Hello Everyone,

I would like to propose allowing curly braces to be optional in JavaScript.

Example:

```
function foo(){
bar()
}
```

can be written as:

```
function foo():
 bar()
```
Or #2:
```
function foo():
 {bar()}
 {bar2()}
```
Or #3:
```
function foo():
 _ bar()
 _ bar2()
```
Or #4:
```
function foo():
 - bar()
 - bar2()
```

Or #5:
```
function foo():
 ; bar()
 ; bar2()
```

That would make JavaScript an easy to write on board language, where a language like python dominates because of it's simplicity in writing. This would make JavaScript spread into more areas in science, education and engineering.

Thank you,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20191102/9b1e9794/attachment.html>


More information about the es-discuss mailing list