Earlier quoted context omitted.
That would fail to compile in TypeScript as well, and you should get a red squiggly or other syntax error indication in most IDEs. Math.random() takes no parameters. From lib.d.ts: interface Math { // ... /** Returns a pseudorandom number between 0 and 1. */ random(): number; // ... }
Actually `Math.random()` will fail too. I am probably not emphasizing this enough, but One is currently a "toolkit" for converting syntax between languages. `Math.random()` is ~a standard library function. One has limited knowledge about language's StdLibs. But you can make `Math.random` (or any method) work without modifying the compiler, only by adding the appropriate implementation and StdLib definitions to approp…
I would have seriously considered your option at the time.
I have no time to dive into this now but I'll bookmark it and come to wave at your gitter.
Is it realistic to contribute to it with knowledge of C++/C#/Java/Python but a pretty poor grasp of JS?