Hello,
I would like to reify an optional type at comptime. More specifically, if I have a type T, I would like to create the type ?T. I could do this in 0.15.2 with @Type, but I’m using 0.16.0.
Thanks
Hello,
I would like to reify an optional type at comptime. More specifically, if I have a type T, I would like to create the type ?T. I could do this in 0.15.2 with @Type, but I’m using 0.16.0.
Thanks
Why can’t you just use ?T?
I dont think there is a single situation you cant do that, and it is the stated reason why it doesnt have a reify builtin.
@alcn you should read the release notes whenever you encounter a difference, there is almost certainly a section on it.
I also just recommend reading it in full, otherwise you may mis important things that are not immediately visible enough while using the language.
Ah yeah, I feel a little silly now ^^'.
?T works. I’ll read the release notes.