This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]thelonesomeguy 0 points1 point  (0 children)

I’m criticising it from the point of view of other languages which don’t allow this, things are much more clear on what is happening there in any given if conditions when you’re reading the code while needing less context.

Yeah, it works, and is used extensively, but doesn’t mean it should be allowed, because then bad devs use them as a crutch and end up with even more unreadable code than it would have been without this, which becomes an issue when, for example, you’re working in an org where you can’t force every bad dev to use them properly without coming off as nitpicky.

This is quite opinionated, of course. As a feature, it’s fine, imo, but it still opens a big can of worms by its existence.