Skip to content

Less painful range construction #25

Closed
@jeff-davis

Description

@jeff-davis

https://gist.github.com/sfackler/4c4e93f896e881fae811

I like that solution there. It is reasonably readable, does compile-time checking, and matches the postgres constructors.

However, it was also suggested on IRC to use something more like:

range!('[' a, b ')')

which is also acceptable to me.

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