Skip to content

Questions about ExprKind #11

@oovm

Description

@oovm

I don't quite understand the structure of ExprKind.

  1. why do I need ExprKind<E = Expr>, can E be any other structure?
  2. why not use wrap type Number directly.
  3. Can other fields be added? eg. NumbericArray, Association

I mean something like this:

pub enum ExprKind {
    Number(Number),
    String(String),
    Symbol(Symbol),
    Normal(Normal),
    NumbericArray(NumbericArray),
    Association(Association),
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions