#What's the opposite of @tagName?
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
@tagName turns an enum value into a string name.. but what can I use to turn a string into an enum value?
std.meta.stringToEnum
gah I can't believe I missed that! I thank you!
it should be in std.enums, but it works
If it's comptime you can also use @field!