You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Declaring structs ahead of time is a necessity for supporting mutually recursive types, but most types aren't mutually recursive. Therefore it would make sense for struct Name to return the created type in addition to binding it to a variable Name.
Combined with Mica's flexible impl blocks, this would allow for the following idiom:
impl struct Vector
func new(x, y) construct
# ...
end
end
The text was updated successfully, but these errors were encountered:
Declaring structs ahead of time is a necessity for supporting mutually recursive types, but most types aren't mutually recursive. Therefore it would make sense for
struct Name
to return the created type in addition to binding it to a variableName
.Combined with Mica's flexible
impl
blocks, this would allow for the following idiom:The text was updated successfully, but these errors were encountered: