sunjay / brain

A high level programming language that compiles into the brainfuck esoteric programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generic Types

sunjay opened this issue · comments

Depends on #16 before this can be implemented. Probably need #44 before this is particularly useful.

  • allow definition of generic type parameters in functions, structs (#39), enums (#41), etc.
  • generic type bounds
  • Remove ItemType::Any and replace any usages with type bounds
  • Make sure types work at declaration and don't have to be ordered in a specific way (you can order types in any order in the file)
  • Defaults for generic types