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

I don't know any language that offers this, I just wanted to say that I have also thought about this feature at times - but when reading your pseudocode I didn't initially get it, because of the OR, which already has its meaning - instead one could use "either", like "either(a, b, c).either(beginswith, endswith)...".


Thanks! I just fixed the pseudocode. Indeed `either ... or` seems almost obligatory for clarity purposes in this type of context.




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

Search: