Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

The new eval #99

Merged
merged 12 commits into from
Sep 27, 2018
Merged

The new eval #99

merged 12 commits into from
Sep 27, 2018

Conversation

jkarni
Copy link
Contributor

@jkarni jkarni commented Sep 18, 2018

See #98 .

@jkarni jkarni changed the title The new eval - do not merge The new eval Sep 25, 2018
Copy link
Contributor

@jameshaydon jameshaydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really don't like that traverse eval, but omg defines work!

modEnv = mappings <> closure
NonEmpty.last <$> withEnv (const modEnv)
(traverse eval body)
res <- NonEmpty.last <$> withEnv (const modEnv) (traverse eval body)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it not be traverse baseEval?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And furthermore, can it reuse callFn.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

#t
|]
prog `succeedsWith` Boolean False

, testCase "redefining eval keeps access to future definitions" $ do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 🥇

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants