[Cuis-dev] Thoughts about symbols

Luciano Notarfrancesco luchiano at gmail.com
Fri Nov 29 05:14:57 PST 2024


On Fri, Nov 29, 2024 at 19:39 Juan Vuletich <juan at cuis.st> wrote:

>
> > Would it be better to replace this with a single and more general
> > Symbol with an instance variable ‘representative’, that can be a
> > String, or a UnicodeString (or possibly any object)? What do you think?
> >
>
> I don't see what we'd gain by doing that. It makes sense, but I don't
> see a problem in the current design, and I think it makes sense too.
>

Yes, that’s true, the current design is not wrong. There’s a bit of code
duplication, and that led to me think about unifying and generalizing it,
and I wanted to know your thoughts. I guess the alternative design would
make more sense if the code was triplicated (if there were 3 kinds of
symbols), but I don’t see that coming. A third alternative would be to move
some methods to CharacterSequence, but I’m not convinced that’s better
either.



> Thanks,
>
> --
> Juan Vuletich
> cuis.st
> github.com/jvuletich
> researchgate.net/profile/Juan-Vuletich
> independent.academia.edu/JuanVuletich
> patents.justia.com/inventor/juan-manuel-vuletich
> linkedin.com/in/juan-vuletich-75611b3
> twitter.com/JuanVuletich
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20241129/46498f07/attachment-0001.htm>


More information about the Cuis-dev mailing list