Symbols to represent a string scala

Viewed 468

I went through the answer on Purpose of Scala's Symbol?

I want to create a Symbol but it has space in it.

Ex:

val s = "Hello World"
val syb = 'Hello World

syb gives compile time error. Is it possible to create a Symbol with spaces?

1 Answers
Related