+1 to all the points for using return values. If we have to implement an output buffer in Lua, we have probably failed. Output buffering is is messy and prone to error. It's certainly not a good design from a usability standpoint, and it's generally messy to deal with.
Template invocations should be the equivalent to calling a pure function. - Trevor On Fri, Apr 13, 2012 at 9:31 AM, Platonides <platoni...@gmail.com> wrote: > On 13/04/12 16:19, Gabriel Wicke wrote: > >> Does anyone have any thoughts on return versus print generally? Are > >> there other reasons we would choose one over the other? > > > > From a language perspective, I would much prefer return values instead > > of side effects, even if those side effects could be converted into a > > return value with a special print implementation. > > I'd also prefer return values. Fits better with wikitext in general. > > > _______________________________________________ > Wikitech-l mailing list > Wikitech-l@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikitech-l > _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l