Re: Design by contract and cocoa
Re: Design by contract and cocoa
- Subject: Re: Design by contract and cocoa
- From: Herman Chan <email@hidden>
- Date: Wed, 22 Jan 2014 12:50:28 -0500
this seems to be the modernized version of it:
https://github.com/brynbellomy/ObjC-DesignByContract
On 22 Jan 2014, at 12:37, Jens Alfke wrote:
On Jan 22, 2014, at 8:03 AM, email@hidden wrote:
I know there are some macros available,
http://www.roard.com/contracts/, but I haven’t experimented further
as yet
Interesting. I like the idea of dynamically creating a subclass that
wraps the methods to be checked, but I don't like doing it with a
bunch of macros. I wonder if there's a cleaner way to do it nowadays
using newer Obj-C runtime features. (I'm assuming that code is old
since the examples don't use any modern language features like
properties.)
—Jens
_______________________________________________
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
_______________________________________________
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