Hacker News new | ask | show | jobs
by jarvuschris 496 days ago
Such an over-engineered API and then you use 1 and 0 instead of boolean for the fundamentally boolean thing that's the whole fking point lol, I'm out
1 comments

Sorry to hear you are out.

I've found "T/F" vals are not always portable between languages ("True" in Python vs "true" in JS) whereas integer comparisons are always interpreted correctly.

> I've found "T/F" vals are not always portable between languages ("True" in Python vs "true" in JS)

What? Booleans are booleans, they are converted to/from the language's boolean type when you encode/decode to JSON.