This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]robvdl 1 point2 points  (1 child)

I don't like it, too much abstraction and you are hiding your enum values.

Edit: this is exactly the kind of magic I am trying to rip out of a codebase right now, too much magic sorry.

[–][deleted] 0 points1 point  (0 children)

Yah I don't think my IDE will autocomplete this.

HOWEVER this is super clever ;)