An experimental "switch-case" implementation for ObjC objects
Objective-C C
Latest commit 68910c2 Apr 10, 2012 @n-b project cleanup
Failed to load latest commit information.
objcswitch.xcodeproj project cleanup Apr 10, 2012
.gitignore
NSObject+objcswitch.h
NSObject+objcswitch.m
README.md Yet another implementation. Things are getting weirder. Jan 16, 2012
ios_app-Info.plist
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

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; }
 ];