Hacker News new | ask | show | jobs
by BigChiefSmokem 3626 days ago
If that happens, and it is actually very likely, I expect UnityScript and Typescript to be rolled into each other.
2 comments

UnityScript is so far from TypeScript that would never happen. UnityScript is absolutely nothing like real JavaScript and has none of JavaScript's real features.
Does UnityScript refer to a JavaScript variant or the C#-like language?
In Unity, you have the option to script in a javascript "like" language. It has quite a few strange syntax variations.

You can also use a (as far as I can tell) standard C# and a couple of other languages including one called Boo which is sort of similar to Python.

I learned C# to work with Unity rather than have to confuse my brain with strange syntaxes of languages I use in other places.

edit: Here is a link http://wiki.unity3d.com/index.php/UnityScript_versus_JavaScr...

The C# is entirely standard. It's compiled to normal IL bytecode. You can call any other IL code from it in DLLs as well, compiled in F# or VB.NET etc. You can even use a newer C# version than their supplied compiler supports if you set it up so you build the IL yourself since it uses the same IL. You lose a few conveniences like opening scripts directly from the editor but it works well otherwise if you want the new C# features. I believe it's also a bit more efficient that way to some degree.