hi
consider following test cases, with particular attention to whitespaces
scala> def test1 = {"this is sit"}
test: String
scala> test1
res21: String = this is sit
scala> def test2 = { "this is sit" }
test2: String
scala> test2
res22: String = this is sit
scala> def test3 = { " this is sit " }
test3: String
scala> test3
res23: String = " this is sit "
scala> def test4 = {" this is sit "}
test4: String
scala> test4
res24: String = " this is sit "
basically,
in test1 and test2, there is no whitespace between the quotation marks and the enclosed strings
in test3 and test4, there is 01 whitespace between the quotation marks and the enclosed strings
in former two, repl responds without quotes, and in latter two repl responds with quotes.
is
there a logic behind (a syntactic convention perhaps) by the virtue of
which the repl response changes in the former two and latter two cases,
and should we (as developers) be wary of such a thing??