News for hackers. Stuff that matters.
Re:Typedefs by nsonha on Thursday November 05, 2020 @06:15AM (#24997287)
when facebook flow came out I thought this was the direction it'd eventually take. Seeing languages got invented with half-ass type systems while advanced ones exist are painful, maybe this'll be the way to go. My only reservation is that the type system needs to accommodate to all levels of strictness to have mass adoption.
Re:Typedefs by wires on Thursday November 05, 2020 @08:55AM (#24998204)
There is a payoff between strictness and usability. To be more precise in the type system beyond what typedefs has now, you need to involve more complicated stuff such as dependent types or refinement types. I don't have the answer, but having (co)products and recursion seems like a reasonable starting point.
Re:Typedefs by nsonha on Friday November 06, 2020 @06:32AM (#25006875)
by all levels of strictness I don't mean being as strict as possible. I meant it should accommodate for less strict usages as well as strict usages.