Skip to content

Add ScalarValue::Union variant #8500

Closed

Description

@thinkharderdev

Is your feature request related to a problem or challenge?

Currently there is no scalar representation of a Union type which can cause issue in cases where we rely on ScalarValue (see #8499 for the issue that is prompting this request)

Describe the solution you'd like

Define a ScalarValue::Union variant. I think this should be as simple as:

enum ScalarValue {
   ...
   Union(i8,Box<ScalarValue>)
}

That is, just wraps another ScalarValue along with the type_id

Describe alternatives you've considered

Not do anything

Additional context

No response

Activity

  1. thinkharderdev commented on Dec 11, 2023

    @thinkharderdev
    ContributorAuthor
  2. Tangruilin commented on Jan 29, 2024

    @Tangruilin
    Contributor

    @thinkharderdev This looks interesting,are you working on it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions