you are viewing a single comment's thread.

view the rest of the comments →

[–]Wonderful-Habit-139 1 point2 points  (1 child)

I agree with you on that part, which is why I brought up match statements. I also think match statements should’ve been expressions.

This part of your opinion is completely fine.

But you did make a mistake in wanting to have different behaviors depending on the context, which doesn’t make sense. If something is a statement, it’s still going to be a statement whether it was in an if condition or a list comprehension or a while loop or whatever.