Hacker News new | ask | show | jobs
by jppittma 399 days ago
That's kinda cool. I bet you could take that to the next step and allow arbitrary code for validation of types/arguments at compile time.
1 comments

If you're interested to learn more in whatever language, the relevant search term is "refinement type": https://en.wikipedia.org/wiki/Refinement_type