Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Zachhack
· 15y ago · 0 comments
I for one would love to see these replaced or complemented by a more OO syntax like:
[1,2,3]->push(..) [3,5,6,]->pop(..) [7,8,9]->map(..)
etc..
Comments
[–]
jonathanyc
15y ago
(Un)fortunately, depending on how you look at it, "everything is an object" is left out in PHP. I personally agree with having some non-object values (use one of the Spl* classes if you want something like that).