- About Scala
- In the Enterprise
- Scala Community
- Language Research
- In the Press
- The Scala Team
- Scala's Prehistory
- Contact Us
- Learning Scala
- Tour of Scala
- Scala API
- Setup & Getting Started
- Programming Guides
- Other Guides
- Code Examples
- Scala Developers
Adding ??? to Predef?
If people don't hold me back I will commit the following addition to Predef.
/** Throws an UnsupportedOperationException.
* Convenient as a placeholder for a missing right-hand-side of a method.
def ??? : Nothing = throw new UnsupportedOperationException("not implemented")
I have been defining this method myself in more and more projects
because I find it both cute and convenient to use
def foo(x: String): String = ???
for a not-yet implemented method. Also makes for a great teaching
tool. Just tell you class to replace the ???'s.
What do you think?