Re: Pengine url

Torbjörn Lager <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CA+Y3JZjQeQKsLo3+9z=D1oym8WEd3wbCiZgR47F4cWaNJS-P=A@mail.gmail.com>
Ok, agreed.

- Torbjörn

On Sun, Feb 9, 2014 at 8:45 PM, Anne Ogborn <[email protected]> wrote:
> I'd say do
>
> var pengine = new Pengine({
>     oncreate: handleCreate,
>     onsuccess: handleSuccess,
>     onfailure: handleFailure,
>     onstop, handleStop,
>     server: 'http://mygame.org',
>     src: ...
> });
>
>
> while the handlers struct is useful, it's one more bit of ceremony for the common case.
> And I'm aggressive about making sure the common case is easy. People doing complex stuff
> can live with complexity.



-- 
Torbjörn Lager
Professor of General and Computational Linguistics
Department of Philosophy, Linguistics and Theory of Science
University of Gothenburg
Box 200, SE-405 30 Gothenburg, Sweden
Phone: +46317864962
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.