Lowtype: Elegant types in Ruby

17 points by pushcx


kokada

This seems to be more of an assertion at runtime instead of type checking at compile/eval time. This means that it doesn't really help to avoid runtime errors. Sure, it will at least avoid data corruption, but in a type checker like mypy if the code pass I have some confidence it will work correctly (yes, there are corner cases it doesn't help, I know).

Sadly because the syntax does looks nice, much better than Sorbet and RBS.

MatheusRich

I appreciate the experiment, but what value people get from runtime checks? It's something I never got into.