W3C home > Mailing lists > Public > public-rdf-comments@w3.org > April 2013

[json-ld] The options argument to JsonLdProcessor.compact should perhaps be the last argument

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 12 Apr 2013 11:20:54 -0400
Message-ID: <51682656.8090808@mit.edu>
To: public-rdf-comments@w3.org
In "web" specs and libraries it seems to be the common style to put 
options objects as the last argument of a method.

I am given to understand that "Node" style is to put the callback, if 
any, as the last argument, and that json-ld is following that style 
here.  But it's not obvious why that's preferable to following "web" 
style for this particular specification.

-Boris
Received on Friday, 12 April 2013 15:21:27 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:59:32 UTC