- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
???
Tue, 2012-02-14, 00:45
hi,
just stumbled over http://ochsenreither.posterous.com/whats-new-in-210, and i'm quite excited at the outlook of scala 2.10.
i know `Predef.???` is an old thread, i just wanted to add that SuperCollider has a more verbose but very nice method for this:
notYetImplemented { NotYetImplementedError(nil, this).throw; }
i think this makes much more sense than `???` and also `undefined` (which is confusing with respect to partial functions, sets, maps etc.).
so you'd have
class X {
def aMethod: Int = notYetImplemented
}
best, .h.h.
On Mon, Feb 13, 2012 at 21:45, Sciss wrote:
> hi,
>
> just stumbled over http://ochsenreither.posterous.com/whats-new-in-210, and i'm quite excited at the outlook of scala 2.10.
>
> i know `Predef.???` is an old thread, i just wanted to add that SuperCollider has a more verbose but very nice method for this:
>
> notYetImplemented { NotYetImplementedError(nil, this).throw; }
>
> i think this makes much more sense than `???` and also `undefined` (which is confusing with respect to partial functions, sets, maps etc.).
>
> so you'd have
>
> class X {
> def aMethod: Int = notYetImplemented
> }
Doesn't look good on a powerpoint.