[MERGE] (robertc) Knit repo format tidyups from the packs branch. (Robert Collins)
Robert Collins
robertc at robertcollins.net
Thu Sep 27 04:39:21 BST 2007
On Thu, 2007-09-27 at 13:17 +1000, Ian Clatworthy wrote:
>
> I disagree with this. In most OO languages, an abstract base class
> still
> needs to compile - it needs to reference methods and attributes that
> exist, even if those things are themselves abstract. I can't see why
> that rule ought to be broken just because we're using Python as the
> implementation language.
Uhm, without devolving into language design, if by 'most' you mean
'statically typed', then sure. But, offhand I'm pretty sure that
Smalltalk, Python, Ruby, ocaml, CLOS, perl's funky object system, lua,
pike, javascript are all free of this limitation.
AFAICT 'most' here really means 'C++ and java'. Neither of which are
paragons of pithy expression and OO purity or versaility IMNSHO.
> If you want to set repository_class to None in the abstract class and
> leave the "repository_class = KnitRepository" assignment in the
> concrete
> class, I'm ok with that.
I'll do this.
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070927/5d65c87b/attachment.pgp
More information about the bazaar
mailing list