News for hackers. Stuff that matters.
Re:Ravi – Lua 5.3 with optional static typing by naasking on Saturday October 17, 2015 @02:53PM (#10405570)
> I often wonder if the whole idea of "typing" is the wrong decision in language design, if we shouldn't come up with something better.

Not sure what you mean by "better". A "type" is a proposition about the program. You can't get more general than that. Any static checking system will have an interpretation in terms of types, so it's hard to see what could possibly be better than a type system. There are just different type systems with different properties.

Re:Ravi – Lua 5.3 with optional static typing by PicassoCT on Sunday October 18, 2015 @08:38AM (#10408056)
type-safety allows for the generating of far more efficient machine code. And you type your language everywhere, the difference is the time it happens and the consistency of the rules below handling type-conversions.

lua sets the type depending on the value assigned at run-time. There are a lot of non-dynamic lanugages who pretend to have dynamic types (var)but actually just let the compiler deduce at compile time the assigned valuetype

Re:Ravi – Lua 5.3 with optional static typing by hellofunk on Saturday October 17, 2015 @05:15PM (#10406143)
Well there is also a fair amount of supportive opinion on the contrary, that "better" is a system without types altogether, hence dynamic languages.
Re:Ravi – Lua 5.3 with optional static typing by duaneb on Sunday October 18, 2015 @02:00AM (#10407354)
Dynamic languages have types, too. Even perl has its distinctions between lists and strings.
Re:Ravi – Lua 5.3 with optional static typing by aikah on Saturday October 17, 2015 @10:27PM (#10406997)
But most dynamic languages have types. PHP ,Ruby,Python and even JavaScript have types.