Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Improve creating scalar and null dataspaces. #747

@1uc

Description

@1uc

Currently one needs to

auto dataspace = DataSpace(DataSpace::dataspace_scalar);

to create a scalar dataspace. Note that,

auto dataspace = DataSpace{DataSpace::dataspace_scalar};

creates a one-dimensional simple dataspace with of shape [0]. It would be nicer to allow something like:

auto dataspace = DataSpace::Scalar();
auto dataspace = ScalarSpace();
auto dataspace = DataSpace::createScalar();

Metadata

Metadata

Assignees

No one assigned

    Labels

    v3Anything that needs to be resolved before `v3`.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions