- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
again still with the curly brackets dead equine
Thu, 2011-01-27, 21:14
hi,
so, it appears i must have the { on the same line as the match, not on
the line after; even the compiler cannot fathom what on earth i could
possibly want, given that syntax. is there per chance any chance that
some day in the future Scala will be less inflexible wrt on which line
the open curly bracket goes?
thanks.
Thu, 2011-01-27, 21:37
#2
Re: again still with the curly brackets dead equine
Can you provide an example of the code that doesn't work the way you want?
val isHello = "Hi" match
{
case "Hi" => true
case _ => false
}
works for me.
--Rex
On Thu, Jan 27, 2011 at 2:55 PM, Raoul Duke <raould@gmail.com> wrote:
val isHello = "Hi" match
{
case "Hi" => true
case _ => false
}
works for me.
--Rex
On Thu, Jan 27, 2011 at 2:55 PM, Raoul Duke <raould@gmail.com> wrote:
hi,
so, it appears i must have the { on the same line as the match, not on
the line after; even the compiler cannot fathom what on earth i could
possibly want, given that syntax. is there per chance any chance that
some day in the future Scala will be less inflexible wrt on which line
the open curly bracket goes?
thanks.
oh.
no, no actually it is just fine and i'm totally wrong in this case.
phew!
On Thu, Jan 27, 2011 at 11:55 AM, Raoul Duke wrote:
> hi,
>
> so, it appears i must have the { on the same line as the match, not on
> the line after; even the compiler cannot fathom what on earth i could
> possibly want, given that syntax. is there per chance any chance that
> some day in the future Scala will be less inflexible wrt on which line
> the open curly bracket goes?
>
> thanks.
>