enhancementhelp wanted
Repository metrics
- Stars
- (7,176 stars)
- PR merge metrics
- (平均マージ 3d 4h) (30d で 1 merged PR)
説明
Hi,
I wonder if it's possible to shrink an expression like
if (!a)
c = b;
else
c =a;
to
c = a || b;
instead of
c = a ? a : b;
You do such tricks already in a logical manner to kick out if-statements, but it would make sense within expressions as well. Or do I miss something, that it should be avoided?
Thanks!