Optional Curly Braces in JavaScript

Bergi a.d.bergi at web.de
Sat Nov 2 19:39:04 UTC 2019


Hello Ed!

> 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.

You seem to not only want to make block syntax optional, but rather make
whitespace indentation significant. You might want to have a look at
CoffeeScript <http://coffeescript.org/#language> which is a
compile-to-JS language that uses this concept. Its function syntax is a
bit different from what you imagined though, most importantly it doesn't
offer any declarations.

kind regards,
 Bergi


More information about the es-discuss mailing list