Tim Disney

Results 108 comments of Tim Disney

Sorry, no. Haven't had time to work on this project in a while.

So there are actually two problems here :) First, the `or` in `TSignalData` is being treated as a normal logical or (ie `||`) instead of the contract combinator `or`. This...

Wait...what I said was wrong. Turns out we actually can and should allow a function and an object in an `or` combinator. Easy to distinguish the cases by `typeof`. Where...

Don't have syntax for this right now. Closest I think is something like this: ``` coffee class HashMap # non-implementation of a HashMap :) get: (key) -> @[key] put: (key,...

I think you should be able to do something like: ``` coffee View :: { method: (C) -> C } View = Backbone.View.extend method: (args) -> ... ```

Ah, I see. Yeah, there's probably not a great way to do it at the moment. I'd like to add the ability to define inline contracts with object literals. So...

How are you trying to run the compiler? I just tried it and it seemed to work fine. Made me dust off my windows VM :)

Nice! I like this idea too. Actually we should just be able to do: ``` coffee foo :: Type ``` No need to add new syntax, context should be enough.

We actually already have that: ``` contracts = require 'contracts.js' contracts.enabled false ``` I need to add this to the docs.