News for hackers. Stuff that matters.
Re:Lua Criticism Is Unwarranted by Joker_vD on Thursday October 26, 2023 @09:40AM (#38025367)
> Is it so difficult to create an object by just setting some attribs and tagging the table with a name?

Is it so difficult to create a struct by just memcpy-ing some data into a malloc-ed buffer and not even putting a tag anywhere? No, it is not. Neither is reading the fields back by using the pre-computed offsets. But people for some reason dislike writing such easy code by hand.

Re:Lua Criticism Is Unwarranted by caligian on Thursday October 26, 2023 @09:37PM (#38033723)
Using a table is still simpler because people literally use dicts everywhere without actually thinking of them as containers but only as 'lookup containers'