3 ms·
Yeah, come to think of it, I have heard of project Euler. I've always forgotten about it, however. I'll try to keep it in mind. I finally got a basic barebon
by iamwil 18y ago
Yeah, come to think of it, I have heard of project Euler. I've always forgotten about it, however. I'll try to keep it in mind.
I finally got a basic barebones class system up and running in Lua (without inheritance though). I can see the flexibility and power of the thing. But with power, well, you kinda have to reinvent the wheel for the tools that you're use to. I figured it was a good exercise anyway.
I was tickled by the name LuaRocks. RubyGems. We're getting better at naming things...
- silentbicycle 18y agoThe Lua way is to add a few meta-features to the language that let you extend it with other features as necessary, rather than building it in.* It keeps the core language small, fast, and easy to understand. You can build an object system, complete with an elaborate meta-object protocol or whatever, and then just shove in a library and take it for granted, if you want. (Where you felt an acute lack of an OO system, I was missing map, fold, and the maybe monad.) Besides, having the flexibility to reinvent means you can also invent. Sometimes an object system is useful, but sometimes it just gets in the way, and I don't think such things should be in the core language.