Skip to content

can't redefine church built-ins and if you try to, errors are very opaque. #55

@feste

Description

@feste

CODE EXAMPLE:

(define (plus a b) (+ a b))
(plus 1 1)

ERROR:

Cannot call method 'split' of undefined

/home/feste/webchurch/church:58
    throw e
          ^
TypeError: Cannot call method 'split' of undefined
    at evaluate (/home/feste/webchurch/evaluate.js:211:25)
    at Object.<anonymous> (/home/feste/webchurch/church:54:25)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions