#phpwishlist not_null() not_string() not_callable() not_a() ... Yeah, I realize that `!` exists, but (a) fluent, and (b) can be called by name where a callable would be expected. Thoughts?
8
1
12
0
0
Related: `isset` should be a function, not a language construct. 🔥
@coderabbi I’d love currying and functions as values so you could write: not(is_null) and use that. In lieu of that tho: yeah these fns would be nice.
@coderabbi functions.php: function not_null($foo) { return !is_null($foo); } Why does this have to be on the language level?
@coderabbi ceciN'estPasUneFonction()
@coderabbi Functional PHP has you covered: github.com/lstrojny/funct…