Skip to content

Figure out how to encode nil and an empty list differently #2362

Open
@bbatsov

Description

@bbatsov

One big pain when working with nREPL today is that in Emacs a nil and an empty list are the same thing. This means that nils and empty lists get encoded the same way (as empty lists) in nREPL requests and we can't differentiate them in the nREPL middlewares.

We need to figure out a some special way to encode nil to avoid problems like #2357 down the road.

@vspinu Any thoughts on this? I was thinking we might just treat some symbol specially - e.g. nrepl/nil or something like this. It's extremely unlikely something like this would come up in user code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions