Why replace a nice language like python with anything coming out of javascript?
Why replace a nice language like python with anything coming out of javascript?
If TypeScript had the awesome python stdlib and the Numpy/ML ecosystem I would use it over Python in a heartbeat.
For IO bound tasks, it also helps that JavaScript has a much simpler threading model. And it ships an event based IO system out of the box.
> The only reason to use it is inertia
and
> Typescript is ubiquitous in web
:-)
And on readability Python also wins (if we prohibit stupidities like PEP 572)
Has shortcomings like all languages but it brought a lot of advanced programming language concepts to the masses!
There are some things that aren't as good, e.g. Python's arbitrary precision integers are definitely nicer for scripting. And I'd say Python's list comprehension syntax is often quite nice even if it is weirdly irregular.
But overall Deno is a much better choice for ad-hoc scripting than Python.
JavaScript itself supports bigint literals just fine. Just put an ‘n’ after your number literal. Eg 0xffffffffffffffn.
There’s a whole bunch of features I wish we could go in and add to json. Like comments, binary blobs, dates and integers / bigints. It would be so much nicer to work with if it has that stuff.
It absolutely doesn't. It doesn't impose any limits on number precision or magnitude.