Skip to content

Ratio datatype is not part of the spec even though clojure.edn supports it. #64

@ghost

Description

It seems that the ratio datatype is simply missing from the specification.
Nevertheless pr-str and clojure-edn/read-string both handle ratios ,e.g.1/2 3/5, as if they were part of the spec.

user=> (pr-str 2/4)
"1/2"
user=> (clojure.edn/read-string "1/2")
1/2

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