Skip to content

Consider new syntax for type constraints #23

@tadeuzagallo

Description

@tadeuzagallo

So far, the best I could come up with was the following

// Printable t, List t 
interface PrintableList<T: (Printable, Foo)> {
  virtual printList(List<T>): Void
  virtual printNumericList(List<T: (Numeric)>): Void
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions