7 ms·
Why a brand new language, instead of building or optimizing the PHP backend for HHVM with an existing language like Haxe? http://haxe.org/ http://haxe.org/
by jdp 13y ago
Why a brand new language, instead of building or optimizing the PHP backend for HHVM with an existing language like Haxe? http://haxe.org/ http://haxe.org/
- bos 13y agoIt was very important to us to have a gradual and smooth upgrade path, such that you can start using Hack by just tweaking the "<?php" header at the top of a source file. Obviously switching to a syntactically incompatible programming language would be at odds with that goal.
- jdonaldson 13y agoHaxe is much more structured in how it's organized. It requires an explicit class for code, it has very few methods or variables in the global namespace, it has block-level vs. function-level scoping, etc. Those are pretty typical language features for languages designed for large code bases, but they're probably unfamiliar territory for some php developers.