Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Yoda Conditions. Parent comment
If the construct is not allowed when user is already in scope, it reflects the designer's view that an assignment in a conditional isn't a good thing.
If the construct is allowed when user exists already, with no diagnostic, then it carries the pitfalls that this thread is about.
There are no comments on this comment yet.
If the construct is not allowed when user is already in scope, it reflects the designer's view that an assignment in a conditional isn't a good thing.
If the construct is allowed when user exists already, with no diagnostic, then it carries the pitfalls that this thread is about.