#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?


Related: `isset` should be a function, not a language construct. 🔥


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.


Yeah, but I also want to be able to do: $foo = array_filter($bar, 'not_null');


functions.php: function not_null($foo) { return !is_null($foo); } Why does this have to be on the language level?


One less external dependency for universal utility.


Also not prone to weird type coercions?


United States Trends
Loading...

Something went wrong.


Something went wrong.