tadeuzagallo / verve-lang

A functional language for the working hacker
https://verve-lang.org
MIT License
346 stars 7 forks source link

Consider new syntax for type constraints #23

Open tadeuzagallo opened 8 years ago

tadeuzagallo commented 8 years ago

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
}