bevry / cson

CoffeeScript-Object-Notation. Same as JSON but for CoffeeScript objects.
Other
1.34k stars 56 forks source link

js2coffee v2.0.0 is out #55

Closed rstacruz closed 9 years ago

rstacruz commented 9 years ago

cson depends on js2coffee 0.3.x. Here are some notes on migrating to 2.x: https://github.com/js2coffee/js2coffee/blob/master/notes/Migration_guide.md

balupton commented 9 years ago

Thanks @rstacruz, v2.0.0 of CSON will actually use cson-safe for stringifying so won't be using js2coffee anymore (despite how awesome it is).

I do wonder though, any idea how to turn a javascript object in memory that also contains functions into a text format such that it can be converted by js2coffee into coffeescript text?

rstacruz commented 9 years ago

lol. no idea—you'll probably need write your own stringify(object) function! but then again, marshaling a function using Function.prototype.toString() is probably not such a good idea :)