- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Re: Re: val 1 = 2 compiles
> why writing 43 characters instead of 19? :-)
You certainly have a point here. I agree that such a function (maybe on
`Predef`) incurs a significant amount of noise. But as already written
somewhere in the thread, the `val` syntax does not allow `|`. Also, a
`MatchError` is misleading for an assertion -- just because an assertion
happens to be a match does not mean we should not use an
`AssertionError` or something along those lines.










Re: Re: Re: val 1 = 2 compiles
On Fri, Aug 26, 2011 at 10:13, Lars Hupel <hupel [at] in [dot] tum [dot] de> wrote:
I know, I was joking a bit. As said before, I'm not arguing this is the best style.