[x3d-public] TypeScript SAI

Don Brutzman brutzman at nps.edu
Wed Jan 15 09:20:01 PST 2020


On 1/14/2020 9:42 PM, John Carlson wrote:
> This email thread is for discussions of TypeScript for X3D.
> 
> Thanks,
> 
> John

 From Wikipedia:
"TypeScript is an open-source programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript, and adds optional static typing to the language."

https://en.wikipedia.org/wiki/TypeScript

I do not see ISO or ECMA anywhere in there, so the language appears to be proprietary with open-source implementation.

The fact that it extends EcmaSCript (JavaScript) version 6 means that, if we indeed create a pure JavaScript library for X3D, then we might add some syntactic sugar as needed for supporting TypeScript as well.  Similar switches could be added to extend an X3dToJavaScript.xslt library as an X3dToTypeScript.xslt converter.  I'd recommend minimizing any differences to support long-term maintainability.

It is worth looking at and supporting both languages in tandem as part of our open-source X3D implementations.  Possibly the TypeScript additions will become part of future EcmaScript standard, and possibly their design capabilities for large-scale applications will aid in our quality assurance (QA) of the Javascript library itself.

Have fun with X3D!  8)

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list