[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Colon notation in object-oriented programming
- From: Francisco Olarte <folarte@...>
- Date: Sun, 5 Mar 2017 18:52:42 +0100
On Sun, Mar 5, 2017 at 3:42 PM, Peter Aronoff <firstname.lastname@example.org> wrote:
> Petri Häkkinen <email@example.com> wrote:
>> local file = io.open("results.txt", "w")
>> io.write(file, table.concat(results, "\n"))
> 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?