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

Essential!

"If new true friend not protected for explicit private union, break case and try using this."

I often write

  if (not ... 
for emphasis. The "bitand" etc. are similarly useful where the operator might otherwise be mistaken for "&&" or, particularly, "||".

The only one that is an unfortunate choice is "compl", which just looks strange. When I feel a need to call attention to use of "~", I define a lambda "bitwise_not(bool)". But rarely.




You could, but the raison d'être of these operators-as-types is their usefulness in metaprogramming.


I prefer:

    if not nowhow not noway
       ...




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

Search: