#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 Trendy
- 1. The JUP 333K posts
- 2. FINALLY DID IT 567K posts
- 3. #IDontWantToOverreactBUT N/A
- 4. Greenland 18.7K posts
- 5. 60 Minutes 100K posts
- 6. #MondayMotivation 31.1K posts
- 7. Good Monday 41K posts
- 8. NextNRG Inc. N/A
- 9. Victory Monday 2,432 posts
- 10. Bobby Petrino N/A
- 11. Christopher Nolan 32.4K posts
- 12. Bari Weiss 82.6K posts
- 13. The Odyssey 30.8K posts
- 14. #MondayVibes 4,784 posts
- 15. Algorhythm Holdings N/A
- 16. Larry Ellison 3,474 posts
- 17. #espresso 3,080 posts
- 18. Chapel Hill N/A
- 19. JD Vance 174K posts
- 20. Nicki Minaj 221K posts
Loading...
Something went wrong.
Something went wrong.