[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Standard Lua Library
- From: "James Hearn" <hearn.james@...>
- Date: Fri, 12 Jan 2007 09:23:40 -0600
Can you give any examples of other programming languages that does
something similar? inject functions into other namespaces?
In Ruby all classes and modules are "open" meaning that other classes
are free to inject, patch, or otherwise modify their class
definitions. As a particular example Ruby on Rails adds functionality
to core classes like strings and numbers (!) It's definitely a
different approach than the standard in most other languages, but the
Ruby camp considers it a strength rather than a drawback.
James