4 ms·
This could a fun way to learn ML using just your browser. I'm still skeptic about the performance but for prototyping it could be viable. One thing bothering m
by tekkk 9y ago
This could a fun way to learn ML using just your browser. I'm still skeptic about the performance but for prototyping it could be viable.
One thing bothering me about reading the API is the inconsistent way of adding semicolons. Not an important thing I'm sure and as my personal opinion I'd much rather have the examples without them. To me they are just waste of time. Also it makes the code look more like Python.
Anyway, looks great!
- irrational 9y agoYou will hate to hear that there is a serious proposal to make semicolons mandatory in the next version of ECMAScript.
- kevincennis 9y agoCan you provide a source for that? Closest thing I could find was this, which simply adds an ASI hazard clause: https://github.com/tc39/ecma262/pull/1062 https://github.com/tc39/ecma262/pull/1062
- seniorsassycat 9y agoI found [this pull request] that adds language recommending the use of semicolons, but no proposals to require semicolons or to remove Automatic Semicolon Insertion. Removing ASI from ECMAScript would break backwards compatibility - modern JS engines couldn't run scripts that use ASI which would break a lot of websites that are alread deployed. ECMA will add features that won't run in old engines (older V8 can't parse arrow functions) but they won't add/remove/change features that break existing behavior. Today there are code patterns where ASI is ambiguous, or at-least hard for a developer to grok. TC39 is warning developers that new language features will not be designed for ASI and might have confusing behavior if those new features are used without semicolons. [this pull request]: https://github.com/tc39/ecma262/pull/1062/files https://github.com/tc39/ecma262/pull/1062/files
- bakkoting 9y agoNo, there isn't. I am on TC39.
- reedx8 9y agoPython doesn't use semicolons as statement terminators. C does.
- woadwarrior01 9y agoThough they’re rarely used in practice, the Python grammar does allow the use of semicolons to separate multiple statements on the same line. https://docs.python.org/3/reference/compound_stmts.html https://docs.python.org/3/reference/compound_stmts.html