I want it too
Conversation
Old rust used to use `[]` for type params and I'm still sad that it lost it 😢
This site is a wild ride if you're not familiar with Rust as it was back in the day: brson.github.io/archaea/
1
1
Example of using [] for type params and .() for indexing: brson.github.io/archaea/foreac
1
1
I don't think that _exactly_ would have survived but since we use .0 etc for tuple access I think arrays coulda been the same.
1
1
Oh yeah, I think `()` for indexing like in Scala is fine too.
2
2
I love that collection access in scala looks like a function call like that.
2
2
how does Scala solve for making indexable user collections anyways?
3
1
I think the call operator is overloadable?
1
1
Kind of like in Rust, with the `Fn` traits (which are not yet overloadable in stable Rust due to the lack of variadic type params)
I'm gonna be honest with you if we have anything but arity overloading I am rioting.
1
2
not/1 and not/2: cool
two different not/1s: pistols at dawn
1
2
Show replies



