• Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Scala 2.11.0
    • Fix Version/s: Backlog
    • Component/s: Repl / Interpreter
    • Labels:


      Copied from SUGGEST-30:

      In Scala REPL (interactive interpreter), type this:

      scala> Set(1, "1.2")
      res11: scala.collection.immutable.Set[Any] = Set(1, 1.2)

      The result does not put a quote on "1.2". Then the user cannot easily see what type each member is in the set. In addition, for the following:

      scala> Set(1, "1.2 ")
      res15: scala.collection.immutable.Set[Any] = Set(1, "1.2 ")

      Quotes are added for string with leading/trailing whitespaces. This adds inconsistency. Also considering the following:

      scala> Set(1, "1.2, 55")
      res18: scala.collection.immutable.Set[Any] = Set(1, 1.2, 55)

      Isn't the result confusing?

      Please consider always adding quotes on strings in REPL result. Thank you.

      PS: Original google group post for this issue is here:!topic/scala-user/xiXpEsCtnoA


          Issue Links


            apm A. P. Marki created issue -
            apm A. P. Marki made changes -
            Field Original Value New Value
            Link This issue relates to SI-6592 [ SI-6592 ]
            moors Adriaan Moors made changes -
            Workflow Open-Closed Workflow v3 [ 39218 ] Copy of Open-Closed Workflow v3 [ 41470 ]
            apm A. P. Marki made changes -
            Link This issue clones SUGGEST-30 [ SUGGEST-30 ]
            sethtisue Seth Tisue made changes -
            Fix Version/s Backlog [ 11701 ]
            sethtisue Seth Tisue made changes -
            Labels community


              • Assignee:
                apm A. P. Marki
              • Votes:
                1 Vote for this issue
                3 Start watching this issue


                • Created: