| ▲ | ceejayoz 3 hours ago | |||||||||||||||||||||||||
Every time I work in another language I miss PHP’s arrays. | ||||||||||||||||||||||||||
| ▲ | conceptme 3 hours ago | parent | next [-] | |||||||||||||||||||||||||
Basically every other language has the same functionality (or better) as a hashmap. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | lazka 2 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
That array keys are auto-coerced to integers has bit me multiple times. | ||||||||||||||||||||||||||
| ▲ | rokkamokka 3 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
They are an incredibly versatile tool for sure. Even more so wrapped in a Laravel Collection | ||||||||||||||||||||||||||
| ▲ | bakugo 3 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||
For me, it's the exact opposite. Every time I work with PHP, I wish I could have TypeScript's properly typed arrays and dictionaries instead of the janky untyped 2-in-1 mess it actually has. | ||||||||||||||||||||||||||
| ▲ | spiderfarmer 3 hours ago | parent | prev [-] | |||||||||||||||||||||||||
Absolutely. If you don’t know PHP arrays aren’t actually arrays, the other languages feel inferior. | ||||||||||||||||||||||||||