←back to thread

155 points samuell | 1 comments | | HN request time: 0s | source
Show context
self_awareness ◴[] No.44748522[source]
It's strange that they sometimes use [] to specify a type, other times they use (). That doesn't look very consistent to me.

I like the use of [] though, it reminds me of Scala, which I liked before they did the scala 3 fork.

replies(3): >>44748835 #>>44749351 #>>44750860 #
1. cjj_swe ◴[] No.44749351[source]
Square brackets do not indicate "this is a type". Instead they indicate "these things were deduced from their context"