+1 for only supporting return values. The case where one needs
thousands of string concats is pretty rare and can be worked around,
and seems like the only reasonable argument in favour of using print.
One exit point per function is much easier to read than juggling
possible scattered print statements, that may be hidden in functions
deeper down the chain. The possibility of print getting abused is just
far too great.
On Fri, Apr 13, 2012 at 8:39 PM, Platonides <Platonides(a)gmail.com> wrote:
On 13/04/12 19:18, Rob Lanphier wrote:
I imagine there's going to be a lot of
cut-and-paste going on, so
if we can establish best practices early (keeping a close eye on how it's
being used), we can introduce some good genetic stock into future Lua
scripts.
Imagine my shock when I first read it as "introduce genetic algorithms
in wikipedia templates"
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l