Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on JavaScript: Double Bitwise Not (~~). Parent comment
Further you're using a side effect of ~ to get rounding. It isn't being used for its intended purpose.
I get your point and to some extent agree with it.
It's more in the class of
While(foo++ = bar++)
You can do it, but you're to some extent abusing constructs.
If it becomes widely used then it's acceptable, but if not it deemed as bad code. Or clever, depending on your world view.
There are no comments on this comment yet.
Further you're using a side effect of ~ to get rounding. It isn't being used for its intended purpose.
I get your point and to some extent agree with it.
It's more in the class of
While(foo++ = bar++)
You can do it, but you're to some extent abusing constructs.
If it becomes widely used then it's acceptable, but if not it deemed as bad code. Or clever, depending on your world view.