You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a relatively popular open-source conversion library from C# to VB.NET https://github.com/icsharpcode/CodeConverter . I wonder how easy or complex will be to have something similar for C# to Jurassic JS?
The text was updated successfully, but these errors were encountered:
It's probably not too difficult to convert the core C# language to JavaScript. (Harder than C# to VB.NET mind you.) But converting the .NET base class libraries (BCL) to the equivalent JavaScript standard library functions is basically an impossible task, because a) the BCL is huge, and b) there's lots of BCL functionality that simply doesn't exist in JavaScript. It might be possible if you restrict yourself to a subset of the BCL though.
Indeed, the BCL is huge. I guess something more manageable will be as a default to use the BCL types/classes directly in the generated Jurassic code, and try to convert to pure JavaScript only some basic stuff.
Probably the code translator should be able to generate working JS code in plenty of scenarios, assuming there is available a helper function getClrType that can be used like this:
There is a relatively popular open-source conversion library from C# to VB.NET https://github.com/icsharpcode/CodeConverter . I wonder how easy or complex will be to have something similar for C# to Jurassic JS?
The text was updated successfully, but these errors were encountered: