Am 10.02.2015 12:45 schrieb "Alexander Lisachenko" <lisachenko...@gmail.com >: > > DbC is good thing, but the way you want to do this via language changes is > really awful. Why do you want to add more custom features into the > language, instead of providing an API to extend it in a more natural way by > framework developers?
Ahem. Any open ended API-for-frameworks will A) force me to pick a framework and bend to the way it wants these things to look, and B) result in fragmentation and incompatibilities for any two pieces of code/library developed with different such frameworks in mind. That will be a total mess. Having it in the language means I can just use it. Unit tests can just use it, especially the PHP tests themselves. And if and where frameworks think they need to mess with it, they can surely be given some Reflection API to have a go at it. best regards Patrick