Giter Site home page Giter Site logo

Empty package fails about as3js HOT 4 CLOSED

cleod9 avatar cleod9 commented on July 28, 2024
Empty package fails

from as3js.

Comments (4)

Cleod9 avatar Cleod9 commented on July 28, 2024

Oh, sorry I will add to the readme that the namespace keyword is not currently supported, and you are expected to provide a class name with each .as file. At the moment I don't have any immediate plans to support the namespace keyword since the concept behind it is somewhat foreign to JS. But I think you should be able to work around this by going through your code and replacing namespace usage with regular public/private/protected properties. (AS3JS does not force you to abide by encapsulation for the time being)

from as3js.

Cleod9 avatar Cleod9 commented on July 28, 2024

Oh one more thing, have you heard of DuoCode? If C# is your thing you might want to have a look:

http://duoco.de/

from as3js.

m93a avatar m93a commented on July 28, 2024

Thanks for the tip!
I've actually found some other project with this purpose, but it seems that DuoCode doesn't mess up the global namespace as it creates only one global object DuoCode and doesn't require any libraries other than Vanilla JS.

However, it would be cool to see a website which would be able to convert your code to multiple languages. Eg. it would convert the code into one universal loss-less language* and then to any other supported language. This would allow sharing base libraries (eg. C++→JS and C#→JS would use the same library for handling types and conversions between them).

*) I'm not willing to create the ultimate language for coding, this language would be designed to be easily parsable, not easily used by a human. It would support many, many approaches to do the same thing (eg. events and futures) and would use that one that is more familiar to the target language.

from as3js.

Cleod9 avatar Cleod9 commented on July 28, 2024

It would be amazing to have such seamless conversion between languages, but it sounds like a pretty daunting task. But what's interesting is that we're already seeing more and more transpilers to JS for many languages, so in a way JS is like that universal language. Though unfortunately it's not that easy to go back from JS to most of those other more structured languages.

Anyway, I'll be sure to update the readme with the next update. I've just been experimenting with the format of the output code to make it a bit flatter. I want to be able to have a "Try It" editor and at the moment it would be loaded with boilerplate code if I did so.

from as3js.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.