moosetechnology / Famix

An abstract representation of source code. Famix is generic and can describe applications in multiple programming languages.
MIT License
13 stars 23 forks source link

FamixTag color serialization #368

Open sbragagnolo opened 2 years ago

sbragagnolo commented 2 years ago

Famix tag serialize colors as hexadecimal. As far as i know this is due to the transmition of color to a web front end, where colors in hexadecimal make sense. Still, this make harder the inspection of the objects in pharo. We should transfer the concern of serialization to a serializer.

jecisc commented 2 years ago

The historic reason is that Fame handles only:

It is not possible to have a colour as the value of a property. Thus we stored the colour as a string and the hexadecimal value was an easy way to store it.

sbragagnolo commented 2 years ago

Yeah. I saw that with other objects. I am now even more sure that we need to be able to articulate secondary serializes for other kind of objects! :)