Add TupleLiteralConvertable Protocol to Swift

Originator:andrewhalls.galtsoft
Number:rdar://18211719 Date Originated:2014/9/3
Status:Open Resolved:
Product:SWIFT Product Version:Beta 6
Classification:Enhancement Reproducible:
 
I've been working on a D.R.Y. process for recording error numbers and associated error messages in an Enum.   I have a solution using StringLiteralConvertable Protocol  can be found at https://gist.github.com/ahalls/80d24eaf7312e24b42ff#file-gagglemessengererrors-swift 

Would be nice to do something similar so a (23,"error 23") tuple could be used to create a struct or class ... I've seen others looking for something similar to "name" various CGPoint literals with an enum.

Comments


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!