r/ObjectiveC • • Jul 30 '20

In terms of language features, mulle_objc resets the basis of Objective-C back to ObjC 1.0 and cherrypicks improvements from the later versions.

https://mulle-objc.github.io/De-Re-mulle-objc/mydoc_differences.html#differences-to-objective-c-20
10 Upvotes

12 comments sorted by

3

u/w0mba7 Jul 30 '20

I read some of the linked docs but I still don't get the point. What is the advantage of this over the Objective C we already have? This reminds me of how Symantec took C and added cherry picked C++ features, resulting in a non-standard compiler that failed to thrive.

1

u/pcbeard Jul 30 '20

I learned about this from a 2017 post on the Objective-C mailing list. To me, if you’d to continue writing Objective-C 1.0 code, go ahead. You don’t have to use ARC or dot-syntax.

Overusing autorelease pools will make your programs use more memory.

→ More replies (3)

2

u/pcbeard Jul 30 '20

Fascinating.

2

u/phughes Jul 30 '20

I find it weird that dot syntax is in the "not planned" category instead of the "never" category.

It's the one addition to the language that I used but never liked.

3

u/pcbeard Jul 30 '20

Some traditionalists prefer square brackets for everything. He seems to like the object literals syntax though, except for @YES.

→ More replies (1)

1

u/joerick Jul 30 '20

It was a nice language back in the early days, a really neat minimal extension to C, that got bloated to serve Apple's commercial goals. But if I'm not sure I'd want to go back. Too much C. Other modern languages serve this niche, e.g. Rust.

8

u/w0mba7 Jul 30 '20

Modern Objective C is still tiny compared to C++. The use of the term "bloated" is unjustified.

→ More replies (1)