← Back to context

Comment by wruza

1 year ago

Then you get hold of a language that doesn’t have all this mess as a foundation and it feels like you stopped self-suffocating.

you can easily learn the whole language and then write, if necessary, reflective object-oriented effortlessly parametrically polymorphic code

This is all you can do in these languages. Anything above it will share the fragility and ad-hocness of this meaningless language para-olympics.

Nope, that's completely wrong, to the point that you cannot have possibly thought it was correct. You can avoid using reflection, object orientation, and parametric polymorphism in Lua, just as you can in almost any other language, and stick to simple imperative code. And most of the time you should.

  • I think you misunderstood my second paragraph. What I’m saying is that in order to do anything complex in it, you’ll have to reimplement important parts that are lacking, using all these meta/parametric things in your “mylualib”, and all this mud will drown you when you’re most vulnerable.

    Toying with it with all the free time on one’s hands is okay.

    Avoiding useful techniques is an option, but doing it when the world of saner alternatives exists feels like self-sabotaging.

    • Hmm, that makes a little more sense than what I thought you were saying. I still don't think it's correct, though. Lua has those facilities already; you don't have to implement them yourself. My point is that it isn't like programming in assembly or C where you either implement them yourself or do without. When OO or reflection is the saner alternative, in Lua, you can just use it.

      2 replies →