Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
baq
6y ago
0 comments
Share
we added new syntax for a code pattern that has inherent complexity which can't be reduced.
0 comments
default
newest
oldest
chrisseaton
6y ago
It can be reduced into two simpler lines can’t it, both of which could be understood in isolation.
baq
OP
6y ago
understanding lines in isolation is precisely besides the point here, because the code pattern has to be understood as a whole.
chrisseaton
6y ago
I don’t see why. ‘Assign x’ and ‘is x truthy’ can be understood separately. Worry about what x is being assigned. Then worry about whether its value is truthy.
1 more reply
j
/
k
navigate · click thread line to collapse