Example of using [] for type params and .() for indexing: brson.github.io/archaea/foreac
Conversation
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
Everything is overloadble.
1
1
Yeah, as an outsider things seem a bit nicer in Scala land since the move away from libraries like ScalaZ (which used far more operators than healthy), towards Cats which seems more restrained and careful in its choices of operators…
Never before seen levels of commitment to the bit
1
3
lol this is worse than I remembered
1
2
Show replies



