pleclech / hacking-haxe Goto Github PK
View Code? Open in Web Editor NEWMusing with HAXE compiler
License: MIT License
Musing with HAXE compiler
License: MIT License
Hi, saw this feature on the latest haxe.io and a question on haxelang where it seemed a good match. While creating an example I ran into an issue with functions, I've created a C# example online that mirrors the use of ?. operator without the errors I received in Haxe.
Discussion:
https://groups.google.com/d/msg/haxelang/Hara-4od9Ao/aHtqCOipfXYJ
Examples:
TryHaxe example: http://hacking-haxe-dev.atouchofcode.com/#0b32D
C# REPL example: http://csharppad.com/gist/986a7f79b375c217ea10 (how it should work)
It would be lovely to have something like the scala objects (they exists globally and they can implement interfaces and/or classes).
Very interesting changes you've done there. Maybe someday this could be ported back to the main source code? :)
I was also thinking about changing Haxe in a way that it wouldn't always require a class, but would automatically stick code to a "Main" object (just like Ruby does), this would make Haxe good as a typed scripting language. I find that creating a class just for to have a main method kind of verbose. This would be a nice experiment too.
This together with a good (cross platform?) REPL would make for a very powerful combo, in my opinion.
What are your thoughts on that?
Even if those changes don't get ported back, they are here to prove that Haxe's syntax can and will eventually be improved, and to show people that hacking the compiler is actually a possibility. Inspiring stuff, keep up the great work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.