joshradin / jodin-rs

A rust reimplementation of Jodin
GNU General Public License v3.0
0 stars 0 forks source link

Generics Classes and Structures #61

Open joshradin opened 3 years ago

joshradin commented 3 years ago

Declare types with generic parameters. This will add semantic meaning to the a declaration like Type<A>, or Type<A : B>.

Declaring a struct with the generic types will be defined using the following grammar:

struct ID <{generic (: _parenttype)}> { ... }

Functions will be defined with the following grammar:

fn ID <{generic (: _parenttype)}> ( params ) ( -> return type ) { ... }

joshradin commented 3 years ago

/cib

github-actions[bot] commented 3 years ago

Branch feature/61-generic_classes_and_structures created!