ES6 JavaScript #64

Closed
opened 2022-01-14 06:26:16 +00:00 by kirsle · 1 comment

Otto is great for its transparent bindings between Go/JS but its limited ES5 support is a pain.

Ideas for possible improvement:

  • goja seems similar to Otto, it can run Babel and pretty much anything ES5, and they've implemented many useful ES6 features already like arrow functions, promises, and for-of.
  • Sledgehammer approach: to provide a good user experience, the game (and doodad tool) takes your modern ES6 source and transparently runs it through Babel or whatever to make it ES5 that's accepted by either engine. doodad show --script would show the ES5-ified source and not the original.
Otto is great for its transparent bindings between Go/JS but its limited ES5 support is a pain. Ideas for possible improvement: * [goja](https://github.com/dop251/goja) seems similar to Otto, it can run Babel and pretty much anything ES5, and they've [implemented](https://github.com/dop251/goja/milestone/1?closed=1) many useful ES6 features already like arrow functions, promises, and for-of. * Sledgehammer approach: to provide a good user experience, the game (and doodad tool) takes your modern ES6 source and transparently runs it through Babel or whatever to make it ES5 that's accepted by either engine. `doodad show --script` would show the ES5-ified source and not the original.
kirsle added the
enhancement
label 2022-01-14 06:26:16 +00:00
Poster
Owner

Fixed in 4d08bf1d85

Fixed in 4d08bf1d8513f76d9b9e2bde22a86c7c7d4fd6d6
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SketchyMaze/doodle#64
There is no content yet.