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

Possibly need generic array types #83

Closed jmeaster30 closed 8 months ago

jmeaster30 commented 9 months ago

...instead of the length being built into the type all the time.

There are algorithms that work generically on the length of the array so need to have some way to specify that

jmeaster30 commented 8 months ago

MAYBE The length shouldn't be in the type?

Cause I needed to create an array with a length that is determined at runtime

jmeaster30 commented 8 months ago

Make the array type have an optional length so declaring the array type would be array u32 5 or just array u32. Not sure if the type should remain without a length but not sure if it would be easy to maintain the lengths

jmeaster30 commented 8 months ago

Done :)