Wgat about static analysis and IDE support? They probably can handle all those sugarcandies because tgey are sticjed to variable but not with any dynamic rules procedural style. Am I right? 11.08.2016 17:17 "Rowan Collins" <rowan.coll...@gmail.com> napisał(a):
> On 11/08/2016 15:49, Lester Caine wrote: > >> The question is not how >> you flag an error, but rather when do you check for one. If the 'load' >> function from a database record or the populate from a web form results >> in $age not being valid one handles that situation based on the data >> model. If you are propagating that data after validating has failed then >> the program flow is wrong and adding some exception when you use the >> duff data later does nothing to help? >> > > Fair enough, so in summary, what you're looking for is a more > comprehensive and/or user-friendly version of the filter_* functions? > > That is, methods to: > - associate validation rules to a variable/array key/object property > - manually check whether the validation rules for one or several variables > currently pass > > But you are not particularly interested in language-level enforcement or > tracking of whether and when these validation rules have been checked, > because you want to insert the validation at specific points in the > workflow. > > Is that an accurate summary? > > Regards, > -- > Rowan Collins > [IMSoP] > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >