Woah! NSClassFromString() lookups work with native Swift classes. /via @mjtsai http://mjtsai.com/blog/2015/07/23/dynamic-swift/#comment-2482853 … (David Koretzky)
-
-
@Kametrixom You still get to cast the return value from NSClassFromString() to make sure it’s what you think it is… -
@mjtsai True, but the initializing with a String is very ugly and you have to watch typos. Generics are more to my liking -
@Kametrixom@mjtsai they solve different problems. And the typo will fail. You need to be using as? instead of as!, no safety loss. -
- View other replies
-
@Kametrixom@mjtsai and when you need a new case, then another? This is prime exmaple of why C++ UI code is littered with MACROs. -
@owensd@mjtsai I puzzled something together quickly, it doesn’t cover not-yet existing classes I have to admitpic.twitter.com/80VZWgzHM5
- View other replies
-
@Kametrixom@mjtsai build a plug-in architecture for an app where 3rd parties create the plug-ins. Show me that working with generics. -
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

David Owens II
Kametrixom

Michael Tsai