|
|
|
|
|
by koczkatamas
3047 days ago
|
|
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 appropriate files. (Even now only using the WebIDE). The plan is to make One plugin-able and create a "package" manager infrastructure, so anybody can implement `Math.random()` or any other methods, publish it and then you can just download that package. Implementing every language's StdLib is not a one-man job, so I've always considered this out-of-scope. Sorry if any published information regarding this was misleading. |
|
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?