Skip to content

feature: add Unit type #409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2024
Merged

feature: add Unit type #409

merged 1 commit into from
Jun 11, 2024

Conversation

daht-x
Copy link
Owner

@daht-x daht-x commented Jun 11, 2024

Pull request

Thank you very much for your contribution

Please read and follow our code of conduct and contributing guidelines.

Table of contents

  1. Tickets
  2. Description
  3. Additional information

Tickets

Undefined.

Top

Description

The Unit type was added. The details of this new type are:

  • Declaration:

    public readonly record struct Unit
  • Description: Type intended to handle the absence of a specific value (explicit simulation of the void
    type).

  • Properties:

    • Discarder

      • Declaration:
      public static Unit Discarder
      • Description: The placeholder that indicates the discarding of a specific value.

Top

Additional information

Undefined.

Top

@daht-x daht-x added topic: feature Indicates a relationship with a new feature or enhancement priority: high Indicates a high priority status: pending Indicates a pending status labels Jun 11, 2024
@daht-x daht-x self-assigned this Jun 11, 2024
@daht-x daht-x added status: approved Indicates an approved status and removed status: pending Indicates a pending status labels Jun 11, 2024
@daht-x daht-x merged commit ca0d4b6 into main Jun 11, 2024
9 checks passed
@daht-x daht-x deleted the daht-x/feature/unit branch June 11, 2024 13:08
@daht-x daht-x added status: inactive Indicates an inactive status and removed status: approved Indicates an approved status labels Jun 11, 2024
@daht-x daht-x changed the title feature: add Unit primitive type feature: add Unit type Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: high Indicates a high priority status: inactive Indicates an inactive status topic: feature Indicates a relationship with a new feature or enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant