Link Details

Link 55536 thumbnail
User 223345 avatar

By limitedwarranty
via phpaddiction.com
Published: Dec 03 2007 / 13:50

Most compiled languages that I have used have some kind of container implementation, Lists, Maps, Trees, Stacks and all their many variations. PHP has arrays and the SPL. This post is more of a question than anything else, are there disadvantages that I can't see to having a standard container library for PHP?
  • 5
  • 5
  • 1260
  • 310

Comments

Add your comment
User 236137 avatar

dzonelurker replied ago:

-1 votes Vote down Vote up Reply

YAGNI

User 223345 avatar

limitedwarranty replied ago:

0 votes Vote down Vote up Reply

Thats helpful... just that YAGNI?

User 247828 avatar

jawngee replied ago:

1 votes Vote down Vote up Reply

He's right though, you aren't going to need it (YAGNI). The array in PHP is a map/hash/stack.

User 236137 avatar

dzonelurker replied ago:

0 votes Vote down Vote up Reply

Thanks, just what I wanted to say. KISS. Keep PHP simple and stupid. Don't try to imitate the C++/Java/C# bloatware.

User 223345 avatar

limitedwarranty replied ago:

0 votes Vote down Vote up Reply

Ahhh... I guess I should have been clearer, I was neither for or against a container library I was curious if one existed, not so much for a user code implementation but a PECL or other native extension and couldn't find one. Thanks all.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (5)



Voters Against This Link (5)