#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. Kansas 18.6K posts
- 2. Jeff McNeil 2,425 posts
- 3. Missouri 6,202 posts
- 4. Arrowhead 3,958 posts
- 5. Vince Zampella 10.6K posts
- 6. Token "F" N/A
- 7. #Fliffmas 1,726 posts
- 8. Titanfall 1,881 posts
- 9. 60 Minutes 142K posts
- 10. Utah State 1,799 posts
- 11. Jackson County 1,279 posts
- 12. Clark Hunt N/A
- 13. Kittle 2,020 posts
- 14. Greenland 37.4K posts
- 15. Zimbabwe 19.7K posts
- 16. Ravi 10.1K posts
- 17. Bari Weiss 117K posts
- 18. Nolan 77.6K posts
- 19. Provo 1,754 posts
- 20. NXXT 1,486 posts
Loading...
Something went wrong.
Something went wrong.