News for hackers. Stuff that matters.
Re:OCaml at First Glance by goodoldneon on Monday August 29, 2022 @10:10AM (#32638461)
The "comma makes a tuple" behavior is a big gotcha I've experienced in Python. I wish that behavior didn't exist
Re:OCaml at First Glance by LynxInLA on Monday August 29, 2022 @10:17AM (#32638574)
Which version of that are you talking about in Python? The biggest related gotcha I've seen in Python is when you have a trailing comma `x = 1,` and accidentally create a tuple.
Re:OCaml at First Glance by goodoldneon on Monday August 29, 2022 @11:27AM (#32639427)
Yea that’s the most common gotcha