Le 25/02/2014 23:02, Matthew Flaschen a écrit : > A good number of SPL classes are available now > (https://github.com/facebook/hhvm/tree/master/hphp/system/php/spl). I > don't know if they all are. > > Tyler Romeo worked on some of this > (https://github.com/facebook/hhvm/pull/807).
Wonderful! I love how it is implementable using plain PHP. >> Another very important point is whether we want to actually use 5.4 new >> features. Reviewing the list of 5.3 new features: >> >> * namespaces : we did not see a good use case for them > > It's useful for extensions. That way, an extension doesn't have to > worry about the names of core classes, or future extensions, and it > doesn't have to have prefixes in the class name itself. I fully agree, it is definitely useful for extensions. For core there is less use though, we can always use Name_Spacing_Class class names. >> * Constants declared with 'const' : we use define() > > I've been using const. It's nicer syntax. It seems the two differences is that const can only be used at compile time and that define() let you create case insensitive constants. I guess we could migrate to const though there is no added value beside being 'const' being nicer. -- Antoine "hashar" Musso _______________________________________________ Wikitech-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikitech-l
