Ben Coman wrote:
However I notice that evaluating #123 in Workspace returns an integer
rather than a ByteSymbol.
I meant also to poll how compatible the behaviour of #123 evaluating to
SmallInteger rather than ByteSymbol is across Smalltalk dialects...
So it would seem that #123 would never be written out in STON format
(from Pharo), which means "OrderedCollection#1 [ Point#2 [1, 2], #2,
#2 ]" might be a less cluttered option, or perhaps a mix like
"OrderedCollection#1 [ Point#2 [1, 2], @2, @2 ]" doesn't detract too
much from readability.
Actually I think this enhances readability anyhow, since if there are
a lot of object references in the STON file, in a text viewer I would
have to need to manually count them to follow the references.
cheers -ben