Y
Hacker News
new
|
ask
|
show
|
jobs
by
Zachhack
5441 days ago
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..
1 comments
jonathanyc
5441 days 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).
link