I have spent quite a bit of time recently working with TypeScript and have come to the following conclusion:
- It makes my code way more rigid and less random
- IntelliSense is the best thing since sliced bread
- It removes some of the mystique and feeling of wielding an enormous and chaotic power
So while the 3rd point is a bit of a con, the other 2 points very closely outweigh it. So with that I have decided to switch to TypeScript (at least for the time being). I have begun creating declarations for all the PlayCanvas engine code and will share it once I am done.
But here is the question to the community of PlayCanvas: Have you tried TypeScript? And if yes, what did you hate about it? I want to know so that I can bail out of this before I am in too deep.
Now a question to the creators of PlayCanvas: Have you considered creating the engine in TypeScript? Why not?