These are chat archives for opal/opal

6th
Apr 2015
Vitor Capela
@dodecaphonic
Apr 06 2015 18:27
I'm finishing a wrapper for PouchDB and I'm stuck here on how to Rubify an API. When querying, you can pass a function in or specify a "design document" -- a permanent way to go through data. On the latter, you pass in a stringified function (the guides tell you to call toString() on a function), which means it passes the raw code in and forgoes closures and such things.
Is there a way to get a transformed lambda as a string without the closures? Do you have any ideas how to make that look a little better?