Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But in PHP, there's technically no difference between a list and a set

Sure there is. In a set, you can't have repeated values. PHP arrays can. Of course, you can implement a set using a PHP array.



I'm well aware of the difference between a set and a list.

My point, which was apparently lost, is that the underlying implementation of these structures is the same in PHP.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: