- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Re: Re: Adding ??? to Predef?
Tue, 2011-10-04, 01:06
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.