jussir
Re:Chainvas: a tiny library that can add chaining to any API like Canv...
on Monday October 31, 2011 @08:34AM (#3177163)
Looks very nice! Though the discrimination between intending or not is done based on whether the previous action mutates the object (no new intend) or creates or returns different object (new intend), right? This is something that can't be known on the language level unless there's a specific syntax for it, which doesn't seem to be possible for Javascript based languages (e.g. https://github.com/jashkenas/coffee-script/issues/1738).