Skip to content

question about evaluation coming from lisp/slime #362

@Dapuva76

Description

@Dapuva76

I'm new to programming in general, and so far I've been coding Lisp using slime in emacs. I'm used to evaluating (slime-eval-defun) a variable like (setq a 3), and then using that variable in every function I want to write (in the same file). So not evaluate the whole buffer, but just the line or function individually.

But with alchemist, if I evaluate (alchemist-eval-current-line) a line with a definition like n = 3, and then evaluate another line referencing n, it says that the variable is not set. Is there a way to mimic slime's behaviour, where I can reference a variable if I already evaluated it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions