#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 趨勢
- 1. FINALLY DID IT 567K posts
- 2. 60 Minutes 116K posts
- 3. #IDontWantToOverreactBUT N/A
- 4. Greenland 25K posts
- 5. #Fliffmas N/A
- 6. Provo 1,120 posts
- 7. NextNRG Inc. N/A
- 8. Bari Weiss 95.4K posts
- 9. The Odyssey 44.6K posts
- 10. Petrino 1,459 posts
- 11. #MondayMotivation 33.1K posts
- 12. Chris Rea 14.8K posts
- 13. #MondayMorning 1,531 posts
- 14. #HunSen N/A
- 15. Christopher Nolan 46.1K posts
- 16. Victory Monday 3,112 posts
- 17. Happy Holidays 64.7K posts
- 18. Barry Manilow N/A
- 19. Vance 258K posts
- 20. Intersect N/A
Loading...
Something went wrong.
Something went wrong.