Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Accept leading semi for line comment #10105
Weary of endless github wars over comment formatting? Wouldn't it be nice if Scala recovered the semicolon, which is on the brink of extinction, for line comments? Only if it is the leading non-whitespace.
// boring val x = 42 /** Annoying sparkles in my eyes. * With the weird indentation. */ val y = 17 ; exciting! punctuated equilibrium in language evolution ; I could go on and on about how it doesn't look like Java. def z = ??? ; I space them qua separators for (v <- vs ; w <- ws if v < w) yield (v, w)
Imported From: https://issues.scala-lang.org/browse/SI-10105?orig=1
;; looks like a walrus in certain fonts, I think ;; two eyes and cute little tusks ;; or possibly that weird spider with the beady eyes def iam = "walrus"
That works if Scala doesn't adopt forever syntax,
I often accidentally insert