• 4 Posts
  • 139 Comments
Joined 2 years ago
cake
Cake day: June 30th, 2023

help-circle


  • Javascript lets you compare unlike types without extra steps using ==. If you want strict comparison where “2” isn’t 2, use === and !==. Personally, I find that easier than having to parseint or cast every damn thing or whatever c does (strtol?). That said, I have build tools set up to enforce strict comparison because I don’t trust myself or others.














  • And it’s not even some crazy stretch to make the premises work. Like if it had said the pizzas are the same size, I’d have to try to come up with something ridiculous to meet the requirements of the question, and would probably just leave it blank. But people order different sized pizzas every day.

    The “correct” answer contradicts the requirements set out in the question.

    Am I autistic? Or do I just have basic reading comprehension?

    If the “correct” answer is valid, so is “actually neither of these people exist”, because we clearly aren’t expected (or allowed!) to accept the premises for sake of argument.