|
Scala Programming Language
»
Scala
[scala] A tiny suggestion
View:
Threaded
Chronologically
All Messages
New views
1 Messages —
Rating Filter:
0
1
2
3
4
5
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
Free embeddable forum
powered by
Nabble
Forum Help