Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
simonkagedal
on July 7, 2023
|
parent
|
context
|
favorite
| on:
{n} times faster than C
That is entirely unneccessary. An == expression will always evaluate to 1 or 0. The !!x trick can be useful in some other situations, though.
Here’s a thing you could do (but I don’t know why):
+= !(c-’s’) - !(c-’p’)
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Here’s a thing you could do (but I don’t know why):
+= !(c-’s’) - !(c-’p’)