Skip to content

Loading…

Order of parameters (options or callback last) #240

Closed
lanthaler opened this Issue · 2 comments

1 participant

@lanthaler
JSON-LD Public Repositories member

Raised by Boris Zbarsky:

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

@lanthaler lanthaler added a commit that referenced this issue
@lanthaler lanthaler Remove issue marker: we decided to use Futures
This addresses #240.
68a7ab9
@lanthaler
JSON-LD Public Repositories member

RESOLVED: Address ISSUE-125 by adopting a Futures-based approach for the JSON-LD API.

@lanthaler
JSON-LD Public Repositories member

Closing this issue as it is being tracked in the RDF issue tracker: http://www.w3.org/2011/rdf-wg/track/issues/124

@lanthaler lanthaler closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.