I’m trying to find any talk on the evolution list about the overloading of enum cases with associated values.
Has this already been discussed? Any technical reasons why we don’t have this already? Anyone else would want this feature? enum MyEnum { case a. // <—\ // | should not be allowed!? case a(Int) // <—/ // What I want is this: case javaScript(String) case javaScript(String, scope: Document) // instead of `case scopedJavascript(String, scope: Document)` } Best regards, -- Adrian Zubarev Sent with Airmail
_______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users