Re:Scala 2.12 roadmap
by lmm on Saturday February 13, 2016 @01:05PM
(#11094938)
> You got used to "this" being a magic value, "it" is a pretty easy concept to grasp.
FWIW I avoid "this" as much as possible. I prefer a named self, which Scala has a nice concise syntax for.
> Besides, it's not any more magical than "_"
Like I said, "_" looks like syntax. "it" looks like an ordinary value.
> which has, what... eleven different meanings? [1]
Sort of, but it's always obvious from context. I have literally never been confused by an occurrence of "_" in 3+ years of full-time Scala programming.
FWIW I avoid "this" as much as possible. I prefer a named self, which Scala has a nice concise syntax for.
> Besides, it's not any more magical than "_"
Like I said, "_" looks like syntax. "it" looks like an ordinary value.
> which has, what... eleven different meanings? [1]
Sort of, but it's always obvious from context. I have literally never been confused by an occurrence of "_" in 3+ years of full-time Scala programming.