Attempted examples of candor code

33 views
Skip to first unread message

Jake Verbaten

unread,
Mar 24, 2012, 6:00:13 PM3/24/12
to cando...@googlegroups.com
I've attempted to port a few of my general purpose js libraries to candor

 - pd (requires the notion of varargs / splats / rest parameters)
   - candor (https://gist.github.com/b86ed871069c90a55bb7)
   - js (https://github.com/Raynos/pd/blob/master/lib/pd.js)

- after (requires getting the number of arguments a function expects like functionName.length in js)
  - candor (https://gist.github.com/42c2bf371a25ac8681bc)

Apart from the two issues mentioned and unless I made a mistake i think candor has most of the features I want of js.

Tim Caswell

unread,
Mar 24, 2012, 6:29:29 PM3/24/12
to cando...@googlegroups.com
Also, in candor, functions don't have properties.  If there was a way to get the arity of a function, it would be with sizeof fn not fn.length.  You won't be able to export a function as your module as well as have properties on that function.

Fedor Indutny

unread,
Mar 25, 2012, 12:45:54 AM3/25/12
to cando...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages