Re: [OT] "Fluent Interface"? Welcome to NeXT
Re: [OT] "Fluent Interface"? Welcome to NeXT
- Subject: Re: [OT] "Fluent Interface"? Welcome to NeXT
- From: Uli Kusterer <email@hidden>
- Date: Sat, 4 Aug 2007 07:20:20 +0200
On 04.08.2007, at 00:39, Oleg Kibirev wrote:
No problem, just use [NSNull null], (id)1 or the like in your code.
Current design is useful for code with a lot of optional object
relationships that would otherwise be littered with if statements.
Tell that to all the system APIs that return NIL on failure. I
can't change those. I've seen enough applications just quietly go
lobotomic just because something didn't load in the middle of a call
chain and the user was never notified of the error. Similarly, it's
kinda pointless how many classes just log to the console when
something goes wrong, where no user is ever likely to see it (not to
mention no developer, as is evident from the way iChat keeps
littering my system logs with its inability to convert its own
dates...).
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden