Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Parse more in tx-parser: id-literals and map shorthand notation #169

@ncalexan

Description

@ncalexan

We need a way to declare temporary IDs. Datomic uses EDN read syntax like #db/id [:db.part/db -1]; DataScript uses negative integers; our CLJ implementation uses a function invocation like (id-literal :db.part/db -1). (Bare negative integers aren't appropriate for Mentat, since we're going to support parts.) I'm loathe to add read syntax just for id-literals and instants, but we need something.

While we're here, the initial tx-parser commit doesn't support the map shorthand; that is, the valid transaction

[{:db/id ENTID :temp/attr "value"}]

is not yet parsed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions