Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Nil behaviour in Elixir #5

@greenboxal

Description

@greenboxal

BERT uses a complex type to represent "nil" as it has different interpretations on different languages.

This is a problem with bertex as nil in Elixir, it means the atom :nil but, in Erlang, it means an empty list ([]). Today, bertex parses it as an empty list which is not nil for Elixir.

@edgurgel what do you think about this? I'm inclined to think that parsing {:bert, :nil} into Elixir's nil is the right approach.

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