jmeaster30 / ocean

A C-like programming language (get it like sea-like like an ocean lol)
GNU General Public License v3.0
0 stars 0 forks source link

Declare tuple types #28

Closed jmeaster30 closed 11 months ago

jmeaster30 commented 1 year ago

I would like the ability to explicitly define a type as a tuple instead of relying on type inference

jmeaster30 commented 1 year ago

let a: (i32, string) would have members '0' and '1' where '0' is an i32 and '1' is a string

Something that could be done in the future could be defining named members in a tuple type like: let a: (first: i32, second: string) where the member 'first' would have type i32 and 'second' would have the type string

jmeaster30 commented 11 months ago

closing obsolete ocean issues