I found this statement:
var o = None: Option[String]
that you can use to set o to a None, with a view to later maybe setting it to a Some[String]
But how does this actual statement break down syntactically? None is an object that extends Option[Nothing] - but how does the rest of the statement work? For example, what does the colon do?
Many thanks!