Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>though maybe there's a path forward to give a variable a sort of "de-hint" in that in can be everything BUT this type

I think this is called a negation type, and it acts like a logical NOT operator. I'd like it too, and I hear that it works well with union types (logical OR) and intersection types (logical AND) for specifying types precisely in a readable way.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: