[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: strict.lua... more information
- From: Dirk Laurie <dirk.laurie@...>
- Date: Fri, 5 Jan 2018 14:31:48 +0200
2018-01-05 13:01 GMT+02:00 sur-behoffski <sur_behoffski@grouse.com.au>:
> > Why must a 40-line script (7 lines of which is documentation
> > and 5 blank that has not needed maintenance changes in
> > almost eight years be a loaded module? You can simply include
> > it in your code with a comment acknowledging the source.
>
> I suppose it's just my style, to keep things as modular as possible.
> Another
> possible reason is that different people have different coding styles, so a
> change within a script could appear jarring. And finally, it's easier to
> track bugfixes/revisions when modularity is enforced, such that third-party
> sources are clearly delineated.
Personally, I don't use all of strict.lua. I just stick an __index metamethod
on _ENV.