Hacker News new | ask | show | jobs
by amirouche 3739 days ago
It's Python with javascript ES6 semantic, there is no support for Python list, dict or support for Python magic parameters kwargs. Good work nonetheless.
1 comments

Python lists are supported:

* as literals;

* in for loops;

Keyword arguments accumulator has no corresponding feature in the ES6 world, as far as I know....

>Keyword arguments accumulator has no corresponding feature in the ES6 world, as far as I know....

As a feature no, but Python code using that could be easily transpiled to a function taking a dict with the args...

It's implementable really and it is half-implemented, have a look at the call conventions... additional keyword arguments can be specified without any problem

The problem is that there's no kwargs equivalent in js land.. and probably i don't want to wrap any call to make it possible.