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

is it just me or does the word "try" seem to imply the opposite here? To me saying "try" is like saying "attempt to run this" like we have in a try/catch block. I feel like something like "expect" would more directly explain what this does.

Great functionality though. I'd be very happy to see this included no matter what it's named.

EDIT: This is answered in the FAQ section after I read further. Apparently it's because "try" is already a keyword. I still don't like it, but I get it.



See also the "continue" statement in C/Go/etc for something that does the opposite of what the word suggests.




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

Search: