124 points · by picture · 3y ago · 18 comments
> return d % 2n == 1n;
TIL(JavaScript): A BigInt is created by appending n to the end of an integer literal — 17n — or by calling the function BigInt().
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Am I the only person who thinks that looks ugly? I initially misread it as a typo for 17*n.
In Python it would just be 17. Python knows when an int is a bigint, because it is big.
So. Much. Tupperware.
Plastics have been a blessing to us humans and a curse to nature.