Skip to content
Just Another Promises Playground.
JavaScript Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
js
json
mocha
require
.gitignore
Eitherz_Mocha.html
LICENSE
Promizzes_Mocha.html
README.md
main_eitherz.js
main_promizzes.js

README.md

japp

playground

Just Another Promises Playground.

Here are the promises' tests:

  • promizzes.js: first naive attempt; promise contains logic to handle value and dependencies
  • promizzes2.js: all logic is outside promises and is handled by static methods depend & fulfill
  • promizzes2b.js: identical to what Robotlolita did
  • promizzes3.js: promises with then (aka bind) as instance method

Here are the Either monad tests:

  • eitherz2.js: all logic is outside promises and is handled by static methods depend, resolve & reject
  • eitherz2b.js: all logic is outside promises and is handled by static methods depend, resolve & reject, heavily inspired to what Robotlolita did
  • eitherz3.js: promises with then (aka bind) as instance method and error handling
You can’t perform that action at this time.