Indirect enum/case should be an implementation detail that is handled by compiler

Originator:an00na
Number:rdar://21981420 Date Originated:24-Jul-2015 08:19 AM
Status:Behaves as Intended Resolved:
Product:Developer Tools Product Version:Swift 2.0 beta 4
Classification:Enhancement Reproducible:Not Applicable
 
Since compiler can already detect when enum/case should be indirect and report errors if we leave out the indirect keyword, why can’t it just make it indirect automatically for us. That is to say, indirect should be an implementation detail that is handled by compiler instead of by programmer. To a programmer, enum is just enum.

Comments

Apple Developer Relations

This issue behaves as intended based on the following:

We considered this direction and prefer that the source code be explicit.

We are now closing this bug report.

If you have questions about the resolution, or if this is still a critical issue for you, then please update your bug report with that information.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!