Scala String Interpolation with Underscore
问题 I am new to Scala so feel free to point me in the direction of documentation but I was not able to find an answer to this question in my research. I am using scala 2.11.8 with Spark2.2 and trying to create a dynamic string containing dateString1_dateString2 (with underscores) using interpolation but having some issues. val startDt = "20180405" val endDt = "20180505" This seems to work: s"$startDt$endDt" res62: String = 2018040520180505 But this fails: s"$startDt_$endDt" <console>:27: error: