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

Point 1. Totally agree, there must be a way to specify a limited list of values of one type.

Point 2. It's not clear what the operator '?' does for a person new to the language. It will introduce confusion.

Point 3. Yes, I don't even know why it has to be that way.



> Point 2. It's not clear what the operator '?' does for a person new to the language. It will introduce confusion.

I mean, it's not clear what pretty much anything (except the most basic stuff) does for a person new to the language. Has to be documented, like anything else.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: