Twitter | Search | |
Joe Groff
If you're an Objective-C developer and feeling left out on new language features:
Reply Retweet Like More
Joe Groff 13 Jun 16
Replying to @raymondedwards
Doesn't look like __auto_type autocompletes, but if you define a macro for it, the macro will autocomplete.
Reply Retweet Like
Paul Hudson 13 Jun 16
Replying to @jckarter
Is it more or less similar to `auto` from Objective-C++?
Reply Retweet Like
Joe Groff 13 Jun 16
Replying to @twostraws
Yeah, though ObjC's type system is different, so you have pitfalls like enum constants and boolean expressions being 'int'.
Reply Retweet Like
Harlan Haskins 13 Jun 16
Replying to @jckarter
auto __auto_type
Reply Retweet Like
Joe Groff 13 Jun 16
Replying to @harlanhaskins
<stdauto.h>
Reply Retweet Like
Pierre H. 🔥🌸 13 Jun 16
Replying to @jckarter
even in C?
Reply Retweet Like
Joe Groff 13 Jun 16
Replying to @pedantcoder
Yep!
Reply Retweet Like
Martin Pilkington 13 Jun 16
Replying to @jckarter
Did I also see mention of class properties for Obj-C?
Reply Retweet Like
Joe Groff 13 Jun 16
Replying to @pilky
Yeah!
Reply Retweet Like
Guy English 13 Jun 16
Replying to @jckarter @kongtomorrow
Cool. I was looking forward to typing more archaic boilerplate to satisfy a compiler with a type safe id!
Reply Retweet Like
Joe Groff 13 Jun 16
Replying to @gte @kongtomorrow
Well, you can always var __auto_type…
Reply Retweet Like