waffle

Waffle is a weblog.
The author of Waffle, some guy in Sweden, also occasionally writes stmts.net.

Generic

Ayton proposes opt-in Objective-C generics. Yes! Perfect! This is exactly what I’m looking for for better clarity with Objective-C code, be it as read by a programmer or as parsed by a tool. This opens the door to way better Code Sense in Xcode and to smarter reasoning about code (with clang finally in the house, the language is starting to become the bottleneck). It also dropkicks one of the remaining semantic type deficiencies right in the face by providing a construct for saying “this method returns an instance of this class”.

Please, Objective-C team. (By which I mean bbum and everyone who works in his immediate vicinity, because I don’t know the name of anyone else on that team.) Take this proposal, figure out what’s not perfect about it, solve these problems and implement it.

Comments

  1. Back in the depths of last month when I wrote that, Greg Parker (who’s one of the ObjC posse) said on the Twitternets that they’d been considering something like my “contextual types”, and the big hangup was syntax. I guess the fact that he didn’t mention the rest of it was a hint. ;-)

    By Jens Ayton · 2009.11.13 20:45

Sorry, the comment form is closed at this time.