rdf-ext-archive / discussions

This repo is for discussions all over the rdf-ext project
3 stars 2 forks source link

Why also have callback functions if we promises? #17

Closed retog closed 6 years ago

retog commented 8 years ago

I think having to pass null arguments as in

N3Parser.parse($("#data").text(), null, window.location.toString()).then(

is quite ugly. Wouldn't it be good to get rid of those as soon as possible?

bergos commented 8 years ago

I agree. The callback API is only there for better backwards compatibility. RDF-Ext 1.0.0 will be based on the output of the Representation Task Force. I will propose to use only Promises and Streams.