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

filter/withFilter deprecation

2 replies
Jason Zaugg
Joined: 2009-05-18,
User offline. Last seen 38 weeks 5 days ago.

The for-comprehension rewriting falls back to filter if withFilter
isn't defined, issuing a deprecation warning.

Is this a candidate for removal for 2.9? Or does it fall in the same
category as case-class inheritance, delaying it for one more major
revision?

-jason

dcsobral
Joined: 2009-04-23,
User offline. Last seen 38 weeks 5 days ago.
Re: filter/withFilter deprecation
As a user, I'd say delay, based simply on the amount of material -- including books -- that mention only filter. Better the user get a warning with an indication of where to go, than see it simply not work at all.

On Sat, Mar 12, 2011 at 22:49, Jason Zaugg <jzaugg@gmail.com> wrote:
The for-comprehension rewriting falls back to filter if withFilter
isn't defined, issuing a deprecation warning.

Is this a candidate for removal for 2.9? Or does it fall in the same
category as case-class inheritance, delaying it for one more major
revision?

-jason



--
Daniel C. Sobral

I travel to the future all the time.
odersky
Joined: 2008-07-29,
User offline. Last seen 45 weeks 6 days ago.
Re: filter/withFilter deprecation


On Sun, Mar 13, 2011 at 3:56 AM, Daniel Sobral <dcsobral@gmail.com> wrote:
As a user, I'd say delay, based simply on the amount of material -- including books -- that mention only filter. Better the user get a warning with an indication of where to go, than see it simply not work at all.
I agree. We intend to keep it deprecated until the next major release after 2.9.

Cheers

 -- Martin
 

On Sat, Mar 12, 2011 at 22:49, Jason Zaugg <jzaugg@gmail.com> wrote:
The for-comprehension rewriting falls back to filter if withFilter
isn't defined, issuing a deprecation warning.

Is this a candidate for removal for 2.9? Or does it fall in the same
category as case-class inheritance, delaying it for one more major
revision?

-jason



--
Daniel C. Sobral

I travel to the future all the time.



--
----------------------------------------------
Martin Odersky
Prof., EPFL and CEO, Scala Solutions
PSED, 1015 Lausanne, Switzerland


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