Move file internal methods to a class continuation in WKView
Created attachment 105248 [details] Patch
Comment on attachment 105248 [details] Patch r=me but while this is a neat way to do things in the future, changing existing code to use continuations has almost zero benefit and makes it harder to “svn annotate” source code, so perhaps we shouldn’t do it everywhere.
(In reply to comment #2) > (From update of attachment 105248 [details]) > r=me but while this is a neat way to do things in the future, changing existing code to use continuations has almost zero benefit and makes it harder to “svn annotate” source code, so perhaps we shouldn’t do it everywhere. I agree.
Committed r93825: <http://trac.webkit.org/changeset/93825>
Do we still get an error or warning if we omit the method definitions?
(In reply to comment #5) > Do we still get an error or warning if we omit the method definitions? Yes.
What advantages over categories do class extensions provide?
I guess maybe it makes it easier to change a method from being internal to public and vice-versa. You won't have to move the method within the file when doing that.
The second, smaller advantage is that there’s no spurious “category name” that you have to chose.