[swift-dev] Location of "indirect" declaration modifier

Matthew Johnson matthew at anandabits.com
Fri Dec 11 10:32:15 CST 2015


> Also even if ‘indirect’ could always be inferred, it seems like a good idea to give the user control over where the indirection occurs — this can have an effect on the size of the enum value for instance.

+1.  Requiring it to be specified also prevents unintentional indirection.


More information about the swift-dev mailing list