Link Details

Link 475477 thumbnail
User 735767 avatar

By stoimen
Published: Aug 27 2010 / 23:06

First of all list() is not an unknown method in the PHP community, where almost every PHP developer knows what it does. The pity is that it has, perhaps, remained useless, although there is hidden power in it!
  • 13
  • 1
  • 7220
  • 5


Add your comment
User 368023 avatar

yakkoh replied ago:

0 votes Vote down Vote up Reply

Very good.
But "The funny thing is that nobody use it ..." because it is not 'natural' or usual to use a function on left of an =.
Returning multiple values should be supported by functions but it is not the case. Multiple values are available in Common Lisp.

User 735767 avatar

Stoimen Popov replied ago:

0 votes Vote down Vote up Reply

Yeah, I have never thought about that, but you're completely right!

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.

Java Performance Optimization
Written by: Pierre-Hugues Charbonneau
Featured Refcardz: Top Refcardz:
  1. Design Patterns
  2. OO JS
  3. Cont. Delivery
  4. Java EE7
  5. HTML5 Mobile
  1. Node.js
  2. Debugging JavaScript
  3. OO JS
  4. JSON
  5. Ajax