Hacker News new | past | comments | ask | show | jobs | submit login

Putting aside whether this sort of thing is clever and clean or occult and confusing, another pattern of the same ilk is:

  ~~(i/13)



for me I see `~~` and I think coerce to integer value (the result will be an integer regardless of i's value, 0 if it fails a clean coercion)

Similar to seeing `!!` and thinking true/false coercion.




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

Search: