Skip to content

Implement generics/parameterized records #291

Description

@dplassgit

At least something like:

// Doubly-linked list
List: record<Type> {
   entry: Type
   prev: List<Type>
   next: List<Type>
}

list  = new List<int>
list.entry = 3
list.prev = null
list.next = null

second = new List<int>
second.entry = 4
second.prev = list
list.next = second

and it Just Works.

Activity

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

Metadata

Metadata

Assignees

Labels

advancedadvanced featuresenhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions