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

Re: Re: Adding ??? to Predef?

No replies
extempore
Joined: 2008-12-17,
User offline. Last seen 35 weeks 3 days ago.

On Mon, Oct 3, 2011 at 4:57 PM, Ismael Juma wrote:
> If "???" gets added to Predef, a lot of hours will be spent explaining
> the reasoning in countless discussions (in the mailing list and
> otherwise). It will be /: (foldLeft) all over again. Just worse. Do
> people really believe it's worth it?

It could be treated as a zen koan.

Student: What does "???" mean?
Master: [silence]
Student: What does "???" mean???
Master: [silence]
Student: I have achieved enlightenment.

Personally I don't want to add anything to Predef until there are
better means of controlling what you get unasked from Predef.

Maybe the mystery of ??? would be reduced if there were only a one
argument version: no zero argument version. Then at least it would
usually say something like

def method = ???("???")

which is much less enigmatic.

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