News for hackers. Stuff that matters.
Re:Contracts For CoffeeScript by gfodor on Monday August 29, 2011 @09:01PM (#2939682)
What's your point?
Re:Contracts For CoffeeScript by jvoorhis on Monday August 29, 2011 @09:38PM (#2939768)
That while this looks like a good extension to CoffeeScript, it's unfortunate that Haskell's type syntax was appropriated when the relationship between contracts and types is tenuous at best.

There are good uses for static type checkers and design by contract, but neither one is a good substitute for the other.

Re:Contracts For CoffeeScript by disnet on Monday August 29, 2011 @11:45PM (#2940031)
I'm not sure that the relationship between types and contracts is all that tenuous.

They both work to enforce program invariants and there's a large overlap in the invariants they can express. Usually contracts are checked dynamically (as in contracts.coffee) but this is not a hard requirement (for example .net's code contracts can be statically checked [1]).

http://msdn.microsoft.com/en-us/devlabs/dd491992

Re:Contracts For CoffeeScript by gfodor on Monday August 29, 2011 @10:50PM (#2939924)
So you're upset about the syntax? Seems like an odd complaint.