Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't verify whether the objects within the container is kind of the declared class. #2

Open
ishuo opened this issue Jul 20, 2013 · 1 comment

Comments

@ishuo
Copy link

ishuo commented Jul 20, 2013

I really like this idea. Generics is one of the language features I'm missing in Objective-C when coming from Java.

I did a small test, and it seems though, that the macro doesn't check whether the objects in the container has the correct type as declared. For example, following code is not marked as error and can be executed:

NSArray<NSString> *testStringArray = @[ @1, @"test2" ];
NSLog(@"%@", testStringArray);

It would be great if type checking could be implemented at the objects level.

@kelp404
Copy link

kelp404 commented Jul 24, 2013

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants