logoalt Hacker News

bjackmantoday at 8:31 AM0 repliesview on HN

I was a bit skeptical at first coz my experience so far has been that Nix's weak typing quite rarely causes me problems.

(Likely because NixOS options tend to be how I communicate between pieces of code, and those have a good enough type system).

But actually I think, as something that you just use occasionally like in your JSON example, this could be really cool. I wouldn't wanna use it as "gradual typing" in the sense of aiming to gradually type a whole body of code I think I would be more interested in "selective typing".

Just occasionally when you get that itch of "ugh this will fail really ungracefully if the inputs are bad" then you just apply this where it's needed.