Closed NSExceptional closed 4 years ago
I’m really certain we’ve had this discussion before. The problem is Foo *
is the instance type of Foo, when %c(Foo)
is giving you the class type. I don’t know of any way to return a Class correctly typed for the compiler.
Ah, yes we have. I'm dumb. It's not possible AFAICT either
I wonder if new logos could just eagerly transform %c(Foo).classProperty
to [%c(Foo) classProperty]
then? That would personally go a long way for me
For example,
%c(Foo)
should evaluate toinstead of just
so that type information is not lost, allowing for things like
%c(Foo).classProperty