This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Requires keyword

2 replies
Alefas
Joined: 2009-06-23,
User offline. Last seen 33 weeks 6 days ago.

Is requires keyword is obsolete in Scala 2.8 (or removed)? This keyword still exists in Scala language specification (but only in few places).

 

Best regards,

Alexander Podkhalyuzin.

extempore
Joined: 2008-12-17,
User offline. Last seen 35 weeks 3 days ago.
Re: Requires keyword

On Wed, Jan 13, 2010 at 05:04:03PM +0300, Alexander wrote:
> Is requires keyword is obsolete in Scala 2.8 (or removed)? This
> keyword still exists in Scala language specification (but only in few
> places).

I was going to say it's only deprecated, but it looks like it's gone.
Martin removed it in r17773.

odersky
Joined: 2008-07-29,
User offline. Last seen 46 weeks 58 min ago.
Re: Requires keyword

On Wed, Jan 13, 2010 at 3:23 PM, Paul Phillips wrote:
> On Wed, Jan 13, 2010 at 05:04:03PM +0300, Alexander wrote:
>> Is requires keyword is obsolete in Scala 2.8 (or removed)? This
>> keyword still exists in Scala language specification (but only in few
>> places).
>
> I was going to say it's only deprecated, but it looks like it's gone.
> Martin removed it in r17773.
>
It's gone. The spec will be updated soon. -- Martin

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland