Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Scala 2.12.1
    • Fix Version/s: None
    • Component/s: Compiler (Misc)
    • Labels:

      Description

      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)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              apm A. P. Marki
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: