[scala] A tiny suggestion

View: New views
1 Messages — Rating Filter:   Alert me  

[scala] A tiny suggestion

by Jesper Nordenberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Putting a space after comma in the toString method for case class makes
the output more readable. For example:

scala> case class A(x : Int, y : Int)
defined class A

scala> A(10, 20)
res0: A = A(10,20)

Should output "A(10, 20)" IMHO. List, Array etc. already does this in
their toString methods.

/Jesper Nordenberg