I understand what the result of a self type is as in
trait SpellChecker {
self: RandomAccessSeq[char] =>
...
}
from http://www.markthomas.info/blog/92
but I did not understand why it is better to use self
instead of this
here...!? Also, if I write asfd
instead of self
I also don't get a compiler error... so I am not quite sure "self" is all about. I don't see that it is possible to use self
like an object in one of the methods of the trait later.