[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Colon notation in object-oriented programming
- From: Francisco Olarte <folarte@...>
- Date: Sun, 5 Mar 2017 18:52:42 +0100
Peter:
On Sun, Mar 5, 2017 at 3:42 PM, Peter Aronoff <telemachus@arpinum.org> wrote:
> Petri Häkkinen <petrih3@gmail.com> wrote:
>> local file = io.open("results.txt", "w")
>> io.write(file, table.concat(results, "\n"))
>> io.close(file)
>
> For what it’s worth, as someone who came to Lua without much OO experience,
> I do exactly this now. I find procedural (or imperative) style far clearer.
Did not you notice io.write is not necessarily the same as file.write?
Francisco Olarte.