lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Jun 25, 2015 at 7:53 AM, Daurnimator <quae@daurnimator.com> wrote:
> Which means that all good libraries should consider it read-only.

Totally. The Ruby community is much more relaxed about 'monkey
patching' - they emphasize the 'patching' whereas we emphasize the
'monkey' ;)

It causes big problems in big codebases.

I can see the utility, but the example of wanting some extra string
methods is not in itself sufficient motivation. Especially if there
are extra run-time costs.  It's true that the global string metatable
causes problems with sandboxing - in Penlight I had to resort to
switching it off before loading code in 'paranoid' mode.

steve d.