2 ms·
What's striking about this is that this constraint is essentially a type constraint. To the degree that existing type systems (and the checkers therefore) make
by dllthomas 12y ago
What's striking about this is that this constraint is essentially a type constraint. To the degree that existing type systems (and the checkers therefore) make this ugly, difficult, or impossible to express that surely points to an opportunity for improvement.
Note that, contrary to some on this page, I read this as speaking entirely about computation whose structure is known at compile time. Obviously, if the structure is based on run-time information then you probably need dependent types to guarantee statically that nothing can go wrong.