What was wrong with Objective-C?
What was wrong with Objective-C?
Other urls found in this thread:
It's too subjective
What wasn't?
godawful syntax.
Didn't have monads.
Adding a shitty version of Smalltalk on top of C was never a good idea.
Shoo shoo Haskell-shill.
ObjC does look terrible.
# import "Integer.h"
# import "Integer+Arithmetic.h"
# import "Integer+Display.h"
int main(void) {
Integer *num1 = [Integer new], *num2 = [Integer new];
int x;
printf("Enter an integer: ");
scanf("%d", &x);
[num1 integer:x];
[num1 showstars];
printf("Enter an integer: ");
scanf("%d", &x);
[num2 integer:x];
[num2 showstars];
[num1 add:num2];
[num1 showint];
return 0;
}
Swift was such an upgrade from that shit.
that's horrifying
is there a GC in use here? what the fuck
It has automatic reference counting.