Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
gcbirzan
on Nov 9, 2018
|
parent
|
context
|
favorite
| on:
BigInt: Arbitrary precision integers in JavaScript
It's hilarious, because:
"1" + 1 === "11" "1" - 1 === 0 "1" + 1n === "11" "1" - 1n: Exception
maxxxxx
on Nov 9, 2018
[–]
Our testers write a lot scripts in PHP and I have spent countless hours debugging stuff like this. A special kind of fun is to figure out what expressions count as TRUE or FALSE. JavaScript seems to have the same, slightly different, problems.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: