[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
newlispfanclub.alh.net • View topic - How to deal with lists of objects?
Page 1 of 1

How to deal with lists of objects?

PostPosted: Sat Apr 26, 2014 7:14 am
by oofoe

Re: How to deal with lists of objects?

PostPosted: Sat Apr 26, 2014 9:23 am
by hugh.jf.chen

Re: How to deal with lists of objects?

PostPosted: Sat Apr 26, 2014 1:28 pm
by oofoe

Re: How to deal with lists of objects?

PostPosted: Sun Apr 27, 2014 6:34 am
by m i c h a e l
When a method does not return a specific value, I usually return self. This was (is?) considered good practice when programming in Smalltalk. It allows you to chain method calls together. As to how inefficient it is, well, Lutz will have to be the one to address that.

m i c h a e l

Re: How to deal with lists of objects?

PostPosted: Sun Apr 27, 2014 1:49 pm
by Lutz
Use time function to find out what is more efficient. Style wise I could live with both.