You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
how handy the fact that delegate regions automatically pick up the name from the pin below - which in our case is the name of the enum entry
how relatively clean the patch is. both for complete and incomplete switches
and how relatively fast the pattern can be applied
Maybe we just need a complete enum switch automatically created by the VL system.
But note: the incomplete switch really looks handy as well, which can't be covered by the system.
The text was updated successfully, but these errors were encountered:
i like this clean approach very much!
only the automatic name pick up doesn't work in all cases.
one question that came up while looking at this was if it come with a performance penalty, when compared to switch-case?
And of course we need a possibility to create and edit enums, but that is already on the agenda iirc.
So, from my side this is a proper solution. For release i guess it deserves some syntax sugar like auto-creation of enums or so.
This is a workaround proposal that covers #14.
enum switches using delegates and dictionaries.zip
It surprised me a bit
Cons [Dictionary]
node really isMaybe we just need a complete enum switch automatically created by the VL system.
But note: the incomplete switch really looks handy as well, which can't be covered by the system.
The text was updated successfully, but these errors were encountered: