Re: [Pharo-users] Looking for a STON in/out "factory"

2019-02-20 Thread Cyril Ferlicot
On Wed, Feb 20, 2019 at 11:01 AM ducasse wrote: > > Hi > > I would like to use STON to save objects that non programmer will edit. > From that perspective I would like to be able to have a different class name > than the one in the implementation. > > For example > instead of > > 'SQOne{#question:

Re: [Pharo-users] Looking for a STON in/out "factory"

2019-02-20 Thread Sven Van Caekenberghe
That is already provided, you should implement SQOne class>>#stonName ^ #OneChoice Apart from that I would also use STON class>>#toStringPretty: or #prettyPrint: true on a writer, if the target audience are humans. > On 20 Feb 2019, at 11:00, ducasse wrote: > > Hi > > I would like to use

[Pharo-users] Looking for a STON in/out "factory"

2019-02-20 Thread ducasse
Hi I would like to use STON to save objects that non programmer will edit. From that perspective I would like to be able to have a different class name than the one in the implementation. For example instead of 'SQOne{#question:''Where do developers typically write the Pharo syntax?'',#cho