R
27

DAE mix up = and == in your first projects?

Caused a weird bug that took me forever to find. So satisfying when I finally fixed it.
3 comments

Log in to join the discussion

Log In
3 Comments
the_dylan
the_dylan1mo ago
Thought they were the same too, til that bug.
6
susan488
susan4881mo ago
Ever wonder why they made = and == so easy to mix up, the_dylan?
5
piper_lopez
Honestly susan488, it's more about history than them trying to trip us up. The single equals sign for assignment was already the norm in older languages like C. They needed another symbol for comparison, so they just doubled it up. Tbh, I still type = when I mean == at least once a week. It's just one of those things you have to train your brain on after hitting that bug a few times.
7