Replies: 2 comments
-
Hey @ajoklar, this is a good idea. It does double the number of the overloads, so I want to first try and look into possible ways to have just one that'd call the specific |
Beta Was this translation helpful? Give feedback.
0 replies
-
Implemented in 0.6.0. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In Swift it is common to
switch
over an optional enum, i.e.:The function
onEnum
only accepts non-nil types, which is less ergonomic, because we have to nil-check before doing theswitch
.It would be great if a function like this would be generated:
Beta Was this translation helpful? Give feedback.
All reactions