4 ms·
> Python With Kurly braces I wasn't aware of this. I guess it might silence a few critics. However I'd be much more interested to try "Javascript with semanti
by andybak 6y ago
> Python With Kurly braces
I wasn't aware of this. I guess it might silence a few critics.
However I'd be much more interested to try "Javascript with semantic white space"
- bobbylarrybobby 6y agoHow would JS with semantic whitespace difference from just auto-indenting a JS file?
- andybak 6y agoIt would look nicer.
- OJFord 6y agoSemantic whitespace looks nicer than non-semantic whitespace?
- andybak 6y agoNo curly braces looks nicer than curly braces.
- pindab0ter 6y agoAnd that’s just a fact.
- strombofulous 6y agoLamdas and first-class functions might make it pretty ugly, I definitely write `func(arg1, arg2, (res) => console.log(res))` from time to time
- bpicolo 6y agoWe tried that for a while, yeah? https://coffeescript.org/ https://coffeescript.org/
- andybak 6y agoOh god. You're right. I'd blotted that out of my memory.
- hobby-coder-guy 6y agoWhy?
- mbirth 6y agoAnd I loved it. So much more convenient than standard JavaScript.
- mistersys 6y agoCoffeeScript code bases are the scariest code bases on the planet, the nightmares. To me CoffeeScript inherited all the inconsistencies of JavaScript, then made the syntax inconsistent as well. It least it had optional chaining.
- irjustin 6y agoIt's weird right? I come from Rails and thought CoffeeScript (CS) could make it way more readable, like Python but with cool string interpolations! But you're absolutely right, it made my code really hard to reason about. I don't know why this is the case but it was always harder to read my own CS than raw JS. I found myself putting blocks into the CS2JS just to read inner workings. While it made me less verbose and short-term faster, longer term it made me slower.
- pkage 6y agoJavaScript has optional chaining now! https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...