asoffer / Icarus

An experimental general-purpose programming language
Apache License 2.0
9 stars 2 forks source link

Ambiguous parse: `[]*bool` #94

Closed asoffer closed 2 years ago

asoffer commented 2 years ago

This could be interpreted either as the multiplication of an empty array with bool, or as the type "slice of pointers to bool." A workaround is to parenthesize bool as in [](bool), or explicitly name the type. But long-term we will need a new syntax for at least one of: