June 28, 2020
10:25 a.m.
On 27 Jun 2020, at 16:58, Sven Van Caekenberghe <sven@stfx.eu> wrote:
Hi Russ,
The limitation of STON not being capable of serialising a block closure still stands and will probably not change very soon (it open up the whole language to be written out).
You can work around this though, with sort functions for example.
Here is an example:
{ 1->#one. 3->#three. 2->#two } sorted: (STON fromString: (STON toStringPretty: #key ascending)).
SortFunctions are really cool BTW (they can handles nil values elegantly).
Sven
Sven do you think that we should have a little section on this question in STON chapter. S