Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Nothing is displayed when eval-ing simple expressions #90

Open
kenny-evitt opened this issue Jul 11, 2016 · 0 comments
Open

Nothing is displayed when eval-ing simple expressions #90

kenny-evitt opened this issue Jul 11, 2016 · 0 comments

Comments

@kenny-evitt
Copy link

From LightTable/LightTable#2092, the first two comments by the person that originally opened the issue:

When writing clojure and trying to evaluate an expression like @foo at the highest level, nothing (visible) happens. To clarify, here is a screenshot:

screenshot

Each line has been evaluated in order using cmd-enter. I would have expected @foo to have the same effect as (deref foo), am I missing something? I'm using LightTable 0.8 on Mac OSX 10.10.5.

and:

I have just noticed that the same goes for evaluating a string, a long, a boolean or a keyword, which suggests to me that this is intended behavior. May I ask why? This comes to me as a surprise as this is quite different from how a classic repl would behave.

and my reply:

@heyarne As-of now, there's no 'reason' why the InstaREPL (or the regular inline eval) fails to print primitive values – it just doesn't. I agree that, being surprising, it should probably be changed to match the unsurprising and standard behavior of other REPLs.

However, none of the core team use the InstaREPL and this isn't particularly useful for inline eval either (as you already know what the value of the expression is). We're also planning on dropping support for the InstaREPL eventually – unless someone steps up to maintain it themselves. If you're willing to work on making the changes tho, one of the three of us on the core team will review a PR with your changes and if they look good we'll gladly merge it.

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

No branches or pull requests

1 participant