#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 Tendances
- 1. Pro Bowl 24.8K posts
- 2. The AsterDEX 45.8K posts
- 3. Ben Sasse 1,967 posts
- 4. Happy Festivus 3,859 posts
- 5. Christmas Eve Eve 69K posts
- 6. FINALLY DID IT 565K posts
- 7. Steve Rogers 18.1K posts
- 8. Happy Holidays 112K posts
- 9. #AvengersDoomsday 148K posts
- 10. Cam Jurgens N/A
- 11. #NXXTHelpsSF N/A
- 12. Larry Nassar 25.1K posts
- 13. Jordan Davis 1,204 posts
- 14. Endgame 120K posts
- 15. Joe Alt N/A
- 16. NextNRG Inc N/A
- 17. Soccer 29.3K posts
- 18. Derrick Brown 1,094 posts
- 19. Nashon Wright N/A
- 20. Chris Evans 9,445 posts
Loading...
Something went wrong.
Something went wrong.