I really can't understand what do you mean. Do we look at the same code? For me, architecture comes first. Imo, simplifying code at the expense of > adding hidden dependencies between classes is a no no.
And yet we would have never had this discussion if VNode was not heavily dependent on a Commander class and its helper classes. We have an absurd situation. It seems you are against something that I am against too. But we still disagree. Obviously there is some misunderstanding. I am really starting to doubt my English skills. Perhaps I am not explaining my thoughts well. I am clueless about what else can I do to make you understand my view. And I can't bend my mind to accept your view. Vitalije > > The proposed new code is likely to increase the hidden connection between > the VNode and Commands classes. This is a big step backwards. > > I can't see why do you think so. > The VNode class should not be dragged into the task of ​simplifying gnx > computations. The present gnx computations, while not pretty, do not > remotely justify complicating the VNode class. > > I don't recall that I ever complained about gnx computation or that I had any intentions to simplify it using VNode class. Therefore I don't understand what your comment refers to. > 2. I still do not understand why passing a "context" arg complicates using > Vnodes. All classes have a self.c arg. > > But let's suppose that instantiating a "dummy" commander was odious in > some situation. In that case, the obvious thing to do would be to define a > minimal DummyCommands class. The g.NullObject class might even suffice. If > not, it would be straightforward to define DummyCommands so it provides > just those features needed to keep the VNode class happy. > > It is certainly possible to do it that way, but to me that is an ugly hack. It is far from being an elegant solution that I would be proud of or one that I would have much confidence in. Vitalije -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
