[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-06 Thread James Howe (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13201180#comment-13201180 ] James Howe commented on COUCHDB-1397: - @Marcello - for unit testing you can do what

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-06 Thread Marcello Nuccio (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13201198#comment-13201198 ] Marcello Nuccio commented on COUCHDB-1397: -- @James, that's what I'm doing. I

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-06 Thread Jason Smith (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13201204#comment-13201204 ] Jason Smith commented on COUCHDB-1397: -- @All: I am fascinated and excited about the

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-05 Thread Marcello Nuccio (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13200798#comment-13200798 ] Marcello Nuccio commented on COUCHDB-1397: -- @Alexander, this isn't as off-topic

Re: [jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-05 Thread Jason Smith
Hi, Marcello and Alexander. Perhaps we can move this to the mailing list and off the JIRA ticket? On Sun, Feb 5, 2012 at 11:21 PM, Marcello Nuccio (Commented) (JIRA) j...@apache.org wrote:    [

Re: [jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-05 Thread Jason Smith
On Mon, Feb 6, 2012 at 8:04 AM, Jason Smith j...@iriscouch.com wrote: ## Unit testing It's imperfect for unit testing; however I think a hypothetical NPM package would be fine. It could convert the ddoc functions to JavaScript functions in a similar fashion. (Below is the first API that

Re: [jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-05 Thread Alexander Shorin
Hi, Jason! I'd like to share your disagreement about global functions (emit, log, send etc.) if only I haven't rewritten query server line by line. Actually, they are start to be global at function source code compilation[1][2], so nobody stops you to change their context. But you may notice,

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-04 Thread Marcello Nuccio (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13200384#comment-13200384 ] Marcello Nuccio commented on COUCHDB-1397: -- @Jason, I've found that, using

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-04 Thread Jason Smith (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13200387#comment-13200387 ] Jason Smith commented on COUCHDB-1397: -- @Marcello, yes I am okay with the idea of

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-04 Thread Marcello Nuccio (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13200471#comment-13200471 ] Marcello Nuccio commented on COUCHDB-1397: -- @Jason, CommonJS is fine, but it

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-04 Thread Alexander Shorin (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13200525#comment-13200525 ] Alexander Shorin commented on COUCHDB-1397: --- [offtopic] Sorry for offtopic,

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-03 Thread James Howe (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13199616#comment-13199616 ] James Howe commented on COUCHDB-1397: - For Paul's example alternatives, is it not a

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-03 Thread Paul Joseph Davis (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13199668#comment-13199668 ] Paul Joseph Davis commented on COUCHDB-1397: @Jason Of course I'd look at a

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-03 Thread Jason Smith (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13199697#comment-13199697 ] Jason Smith commented on COUCHDB-1397: -- @Paul We really need to define invalid

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-03 Thread Paul Joseph Davis (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13199714#comment-13199714 ] Paul Joseph Davis commented on COUCHDB-1397: @Jason I reject the premise

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-03 Thread James Howe (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13199747#comment-13199747 ] James Howe commented on COUCHDB-1397: - There's nothing Invalid about this

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-03 Thread Paul Joseph Davis (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13199766#comment-13199766 ] Paul Joseph Davis commented on COUCHDB-1397: Erm, I'd like to point out that

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-03 Thread Jason Smith (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13199794#comment-13199794 ] Jason Smith commented on COUCHDB-1397: -- And since when has the contents of map

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-03 Thread Paul Joseph Davis (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13199838#comment-13199838 ] Paul Joseph Davis commented on COUCHDB-1397: Firstly, I'm not thinking of

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-03 Thread James Howe (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13199892#comment-13199892 ] James Howe commented on COUCHDB-1397: - The string function(doc) {} *isnt* invalid

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-03 Thread Benoit Chesneau (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13199904#comment-13199904 ] Benoit Chesneau commented on COUCHDB-1397: -- Having a json which would do {

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-03 Thread Paul Joseph Davis (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13200071#comment-13200071 ] Paul Joseph Davis commented on COUCHDB-1397: @Benoit That's what I was

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-02 Thread Jason Smith (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13198732#comment-13198732 ] Jason Smith commented on COUCHDB-1397: -- ## Facts 1. All documentation, all books,

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-02 Thread Paul Joseph Davis (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13198936#comment-13198936 ] Paul Joseph Davis commented on COUCHDB-1397: Describing this as exploiting a

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-02 Thread Jason Smith (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13199425#comment-13199425 ] Jason Smith commented on COUCHDB-1397: -- Paul, tl;dr: I see your point but disagree

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-02 Thread max ogden (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13199461#comment-13199461 ] max ogden commented on COUCHDB-1397: another option is to require commonjs instead

[jira] [Commented] (COUCHDB-1397) Function expressions, evals in SpiderMonkey

2012-02-02 Thread Jason Smith (Commented) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13199503#comment-13199503 ] Jason Smith commented on COUCHDB-1397: -- Love it. I'd still rather that Couch