Deno – A secure TypeScript runtime on V8
github.com
github.com
More examples are on https://github.com/Microsoft/TypeScript/wiki/FAQ
I actually like the structural system a lot, and found that combined typescript expressiveness, typing a code base with TS is much more intent driven and requires much less contortionism that a class-for-everything nominal system such as Java. In fact, we ported one of our java backend to node/TS, 40% less code, and as typed if not more. Also, there are simple ways to bring some of the nominal characteristics when needed, but in a language like JS where object literal is a intrasic part of the language, a structural typing system is great fit.
So, yes, their are different approach, but not sure soundness is a good description of those differences.
Now, if TypeScript is used to code JavaScript ”a la” Java, then yes, it could be seen as a loss of functionality.
import { test } from "https://unpkg.com/deno_testing@0.0.5/testing.ts"
Won't this get old really quickly? Most of my Javascript files start with 3-4 imports of the form `import React from "react"`, `import { sortBy } from "lodash"`. Having to type out the full path/version for those imports feels like a step backwards in usability, and makes it more likely that I'll end up with mismatched versions of dependencies.But this could lead to a mess, as different files may end up using different version of same package.
As a node developer: yum.
The easiest solution to this is just put one single line of code at the top of your application, then you can have as many awaits as you like under that.
Leveraging JS popularity is one reason I can think of.
https://news.ycombinator.com/item?id=17183241
https://github.com/denoland/deno/pull/276
Wasn’t able to find the motivation yet.
https://github.com/denoland/deno/pull/276#issuecomment-39932...