Originally Posted by Atropos
Thanks to those who replied, but I'm still not clear what the actual gain is from trying to force OOP like this. Can someone provide an example use case where using ZO_Object allows them to do something that would otherwise be a big pain in the ass?
Is it simply a mechanism for making programming LUA more friendly/intuitive for people who are used to other OO languages?
|
In general functional programming vs oop can actually be a bit of a contensious topic. Theres a few comparisons of varying biases to be found on google
Heres a reasonably neutral writeup by Robert C Martin (Uncle Bob)
http://blog.cleancoder.com/uncle-bob...24/FPvsOO.html
Personally I wouldn't want to rule either out on account of preferance. Gains of one over the other depend on suitability for the problem but also how you approach the solution. A problem could naturally lend itself to an OO solution but it still have a poor implementation and gain nothing