Actions
Feature #12995
closedConditional expression taking a receiver outside the condition
Feature #12995:
Conditional expression taking a receiver outside the condition
Status:
Rejected
Assignee:
-
Target version:
-
Description
Since a conditional expression has a return value, we can continue a method chain after a conditional expression like this:
It is convenient if we can have a condition after or in the middle of a chain. I would like to do this:
Updated by herwinw (Herwin Quarantainenet) over 9 years ago
Updated by matz (Yukihiro Matsumoto) over 9 years ago
- Status changed from Open to Rejected
Interesting proposal but this changes the meaning of if and case too much.
Matz.
Actions