An experimental "switch-case" implementation for ObjC objects
Objective-C C
Latest commit 68910c2 Apr 10, 2012 @n-b project cleanup
Permalink
Failed to load latest commit information.
objcswitch.xcodeproj project cleanup Apr 10, 2012
.gitignore Playing a bit. Jan 16, 2012
NSObject+objcswitch.h
NSObject+objcswitch.m typo fix : remove an unneeded "class" call Apr 9, 2012
README.md Yet another implementation. Things are getting weirder. Jan 16, 2012
ios_app-Info.plist project cleanup Apr 10, 2012
main.m
objcswitch_case.def.h Added comments about the hacks, simplified the recursive-include tric… Apr 8, 2012
objcswitch_switch.def.h
objcswitch_tests.m
tests-Info.plist project cleanup Apr 10, 2012

README.md

objcswitch

An experiment with blocks, objective-C, and adding features to the language.

The implementation lets you write stuff like that :

[[@"foo" switch]
 case:@"bar" :^{ success = NO; }
 case:@"baz" :^{ success = NO; }
 case:@"foo" :^{ success = YES; }
 ];