I meet some scala code with "?" but do not know what it mean in scala, could anyone explain it to me ? Thanks.
And here's one example
def getJobId(conf: Configuration): String = ?(conf.get("scoobi.jobid")).getOrElse(sys.error("Scoobi job id not set."))
val lovely_? = isItAGoodDay()<-- like that?Option.apply(x)convertsnulltoNone. So Ifconf.get("foo")doesn't return anOption, but might returnnull, then this is done to convert the possiblenulltoNone(see Christian's answer).