You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, I mostly agree and also get frustrated when we don't quite hit the length limit. However, rather than just extend the limit, I'd rather do something a little smarter, like look at the expressions in the arms (I think we already require a single expression) and allow a one-liner if there is a 'small' expression, for some definition of that.
The default 50 column limit on single-line if-else statements feels like it creates too much whitespace for simple logic. For example:
becomes
I understand the rationale behind discouraging complex one-liners, but it seems like a length restriction just encourages shorter variable names.
The text was updated successfully, but these errors were encountered: