On 6 September 2017 12:38:03 BST, Dan Ackroyd <dan...@basereality.com> wrote: >On 6 September 2017 at 12:15, Rowan Collins <rowan.coll...@gmail.com> >wrote: > >> If you have suggestions for how the format should look > >Don't use a format. Just write code - see below.
I'm going to assume that the code you posted was something of a straw man, and you're not actually advocating people copy 20 lines of code for every variable they want to validate. As soon as you have some shared functions, you have some design decisions about how those functions are named, what arguments they take, etc. When used for a lot of variables, that will resemble some kind of DSL, and that's all I meant by "format". >This type of library should be done in PHP, not in C. I can certainly see the argument for that. In that case, how would you like to see the language evolve: Should we deprecate ext/filter, to encourage people to use better implementations in userland? Should the language include some set of basic primitives that these userland implementations can use, rather than having to endlessly reimplement things like a regex for detecting a valid integer? Or do you view ext/filter's current scope as about right, and it should be neither extended nor reduced? Regards, -- Rowan Collins [IMSoP] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php