Re:Static Types in SwiftUI
by DelightOne on Tuesday November 05, 2019 @06:46PM
(#21458174)
It seems the compiler might be smarter than I thought he is (see a poster above), if so I learnt something new. :)
And it seems I didn't understand your problem, you wanting a variable that can change it's type instead of just some syntactic sugar, hmm.
Yes, that would be a workaround for myself, but for a game engine's API, it'd be ugly to require users to write that every time. :)
And there are cases where they might not even know the type.