Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Doxin
on Oct 10, 2024
|
parent
|
context
|
favorite
| on:
Why does ++[[]][+[]]+[+[]] return the string "10"?
The real trick there is that not() isn't a function call. It's not applied to the empty tuple. The empty tuple is False, so not () returns True.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: