Comments (4)
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.
Oh one more thing, have you heard of DuoCode? If C# is your thing you might want to have a look:
from as3js.
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.
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)
- error HOT 5
- as3js crashes when attempting to import undefined packages HOT 5
- Do class member references need to be prefixed by their class name? HOT 4
- Automatically replace "new Dictionary()" with "new Object()"? HOT 3
- Some variable typing for const variables was not dropped HOT 2
- It seems like class member initializations sometimes aren't in the right block of code. HOT 3
- Function doesn't transpile corecly HOT 1
- Please reopen this project! HOT 4
- i got a type error in the AS3JS Live demo HOT 1
- No such file or directory" HOT 8
- Investigate Implementing AS3 AST Parser HOT 9
- Can it go the other way? HOT 3
- Convert unsupported compound assignment HOT 1
- -v command line arguments conflict HOT 2
- for(var i:int=0,len:int=arr.lengthi<len;i++) HOT 2
- Maximum call stack size exceeded HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
ð Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â€ïž Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from as3js.