[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Suitability of Lua as a First Programming Language?
- From: Elias Barrionovo <elias.tandel@...>
- Date: Sun, 2 Dec 2012 12:28:28 -0200
On Sat, Dec 1, 2012 at 7:43 PM, Pierre Chapuis <catwell@archlinux.us> wrote:
> That being said there is something I think Lua is the perfect
> language to teach: Object Orientation. Because to use OO in Lua
> you implement it, and you understand it is not something so
> complicated. You also understand objects can be seen in two
> ways: structures with related methods (the x:foo() style) and
> closures (the x.foo() style).
Yes! I always thought that! Some friends learned Object Obsession
through Java thinking that OO is about tons of public static voids and
getters and setters and... in Lua one can understand the basic OO
concepts (inheritance, polimorphism etc.) by actually (easily)
building them. =)
--
NI!