News for hackers. Stuff that matters.
Re:The compiler for Teal, a typed dialect of Lua by veltas on Thursday February 25, 2021 @07:55AM (#26262242)
In my opinion, this is a valid alternative and not a straight deficit. Lua demands using a lot of maybe-nil values, and 90% of the usefulness of types still applies if you 'hide' this.

And there is a productivity gain from not having to consider nils in your types, because handling often requires code, annotation, or thought. But there is a loss of productivity to fixing nil errors that aren't caught by other typing features.

Places where the typing in Teal is still helpful: accessing the wrong thing, typos of variable names, wrong number or type of arguments to functions. That covers most of the statically-detectable errors.

There are no comments on this comment yet.