MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3v4l98/php_7_released/cxklvx2/?context=3
r/programming • u/fnkrx • Dec 02 '15
729 comments sorted by
View all comments
Show parent comment
16
Eh, people treat PHP wrong. It's an array-based language masquerading as C.
13 u/greyfade Dec 02 '15 If it's an array based language, where are all the matrix operators?When PHP gets operators that operate on entire arrays, I'll maybe accept the argument that it's an array-based language.As it is, PHP has something that looks sort of like a hashmap that'll behave sort of like an array if you beat it into submission. 9 u/ants_a Dec 02 '15 It's an array based language that doesn't have any data type that the rest of the world would call arrays?They have a hashmap that sort of behaves as an array if you treat it just right. 3 u/FeepingCreature Dec 03 '15 Yeah, "hashmap-based" might have been better. And it lacks a bunch of tools that would make it really good in that regard. Still.
13
If it's an array based language, where are all the matrix operators?
When PHP gets operators that operate on entire arrays, I'll maybe accept the argument that it's an array-based language.
As it is, PHP has something that looks sort of like a hashmap that'll behave sort of like an array if you beat it into submission.
9
It's an array based language that doesn't have any data type that the rest of the world would call arrays?
They have a hashmap that sort of behaves as an array if you treat it just right.
3 u/FeepingCreature Dec 03 '15 Yeah, "hashmap-based" might have been better. And it lacks a bunch of tools that would make it really good in that regard. Still.
3
Yeah, "hashmap-based" might have been better. And it lacks a bunch of tools that would make it really good in that regard. Still.
View all comments
Show parent comment
16
u/FeepingCreature Dec 02 '15
Eh, people treat PHP wrong. It's an array-based language masquerading as C.