#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. 🔥
5
0
5
0
0
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.
1
0
1
0
0
Yeah, but I also want to be able to do: $foo = array_filter($bar, 'not_null');
2
0
1
0
0
functions.php: function not_null($foo) { return !is_null($foo); } Why does this have to be on the language level?
1
0
0
0
0
One less external dependency for universal utility.
0
0
0
0
0
United States Trends
- 1. #KonamiWorldSeriesSweepstakes 1,017 posts
- 2. #2025MAMAVOTE 1.54M posts
- 3. Mitch McConnell 14.6K posts
- 4. Term 184K posts
- 5. Tyla 23.2K posts
- 6. Budapest 11.5K posts
- 7. #TrumpShutdownBadForUS 2,657 posts
- 8. No Kings 148K posts
- 9. Yung Miami 1,913 posts
- 10. Somalia 30.8K posts
- 11. Caresha 1,505 posts
- 12. Chanel 26.3K posts
- 13. Deport Harry Sisson 30.4K posts
- 14. Andrade 7,634 posts
- 15. Miguel Vick N/A
- 16. Spencer Dinwiddie N/A
- 17. Carter Hart 1,824 posts
- 18. ErgoChair X N/A
- 19. President Putin 23.9K posts
- 20. Brian Cashman N/A
Loading...
Something went wrong.
Something went wrong.