Skip to content

Introduce the Nil Object #136

@greelgorke

Description

@greelgorke

Hello and sorry in advance for all typos!

I'd like to introduce a new Object in the core, which consistently represents a null value but is not null. Why is this interesting?

One of the main pain points in Streams (not just core) is that null isn't a good choice for end-of-stream value in object mode. Highland.js resolves it with it's own _.nil value. But this works fine only for the same install. as soon as we have two dependencies, each having it's local highland dependencies, the _.nil check is flawed. a central instance would solve some pains here.

why core? it's the single point of truth in Node.js context. This value could also provide more interoperability to different user-land packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions