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…0 replies 0 retweets 0 likes -
@mjtsai True, but the initializing with a String is very ugly and you have to watch typos. Generics are more to my liking0 replies 0 retweets 0 likes -
@Kametrixom@mjtsai they solve different problems. And the typo will fail. You need to be using as? instead of as!, no safety loss.0 replies 0 retweets 1 like
@Kametrixom @owensd The class may not even exist at compile time.
12:15 PM - 23 Jul 2015
0 replies
0 retweets
0 likes
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