Closed ammarbinfaisal closed 8 months ago
I am think instead of impl
the values would be passed a ref by default. just like lists are passed by ref right now
struct Point {
x: int,
y: int
}
and
enum Fruit {
Apple,
Mango,
Orange,
Other(int)
}
just like rust and there'd be impl
s and trait
s but no Copy
/Clone
/Send
and we'd automatically handle all that and by default every type would be printable
ended up with haskell like type constructors. 😅
I am conflicted between rust like structs and impl. Or go like
and if wanna name a tuple