[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Simulating Lua states in Lua with only 250 lines of code
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 25 Jun 2015 08:07:31 +0200
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.