Skip to content

Instantly share code, notes, and snippets.

@ryasmi
Last active December 23, 2015 17:59
Show Gist options
  • Save ryasmi/6672194 to your computer and use it in GitHub Desktop.
Save ryasmi/6672194 to your computer and use it in GitHub Desktop.
This an example of what I hope future code completion is like. Could use "unification" to decide if a function is the same as another.

UserX/OneOps.code

# {x} + 1
addOne (x) => add x 1

UserY/TenAddOne.code (before completion)

log = import log from 'console'

# {x} plus 1
addOne (value) = add x 1

log (addOne 10) # Log 10 plus 1.

UserY/TenAddOne.code (after completion)

log = import log from 'console'
addOne = import addOne from 'UserX/OneOps'
log (addOne 10) # Log 10 + 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment