Skip to content

Dynamic lookup can completely shadow Bindings in the REPL #1188

Open
@scolsen

Description

@scolsen

Consider the following in the REPL:

(Pair.init 1 2)

Should this evaluate to Dynamic.Pair.init or just Pair.init? Currently it does the former as we prefer and privilege dynamic code by silently looking for all symbols in the dynamic module first.

The question here is more philosophical—it's currently impossible to evaluate a Static pair in the repl without using it, or forcing its typing. Otherwise, the Dynamic Pair is always found instead. Is this the behavior we want, or should our lookup be slightly more sophisticated in this case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions