logo       

syntax questions: msg#00025

lang.scala

Subject: syntax questions

Greetings,

A couple questions w.r.t. syntax:

- It seems the lexer doesn't like access on the 'class' member (e.g. the _expression_ "Employee.class" yields the error "identifier expected but 'class' found"). In my case this is an annoyance because a tool I'm using (a lightweight ORM) requires the class name to be mentioned as part of it's required metadata. Is this a bug or intended behavior?

- I'd love to see a builtin tuple syntax -- e.g. (x,y,z) instead of Tuple3(x,y,z) for [de]constructors -- is that a remote possibility? As an ML user, the former feels quite a bit more elegant... but I guess Scala's probably not targeting my demographic quite as heavily, as say, Java users ;-)

Cheers,
Jason
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise