My preference would be to make them required in the places they're
currently optional :-)
Optional curly braces have led to many bugs, not just in JS (the "goto
fail" SSL bug, for example) - why is this risk worth making it easier to
write code on a whiteboard, where it doesn't need to be valid
unlike python, many [client-side] javascript programs require
rollup/minification into a single dist-file. removing curly braces (just
like asi) makes that task more difficult.
this is also why esm-import-statements were a terrible idea. ppl like me
would argue frontend-programs (which are
Hi Kai Zhu,
We can enforce curly braces through "good practice" JavaScript documentation
style and eslint style. Making braceless JavaScript feature doesn't make it the
best style to use, it just give more flexibility. And yes Jordan, it should
actually be enforced to use curly braces in actual
I don't see any reason why Python is widely used in math and science, and
specially AI, other than this reason. It's easy to write and prototype in.
From: Jordan Harband
Sent: Saturday, November 2, 2019 9:23:31 PM
To: Ed Saleh
Cc: Bergi ; es-discuss ; kai zhu
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:
```
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
I don’t think the obstacle to JavaScript becoming more widespread is
mandatory curly braces, nor do i think any part of python’s popularity is
due to optional curly braces.
Separately, how are you measuring “widespread”? One measurement might be,
for example, “how many computers is it used on”,
Python is so broadly used in those fields due to good library support, not
just ease of language use. But since that discussion is pretty off-topic,
I'll leave it there.
On Sat, Nov 2, 2019 at 21:33 Ed Saleh wrote:
> I don't see any reason why Python is widely used in math and science, and
>
> I don't see any reason why Python is widely used in math and
> science…
Should talk to longtime Python peeps about it, it's not just "easy" or
they'd be using VB6!
Let me leave this here:
Python has had bignum (arbitrary precision Integers) since 2008.
Even before that, it had Long
9 matches
Mail list logo