[squeak-dev] Json dictionary tree accessing
Chris Muller
asqueaker at gmail.com
Thu Sep 2 23:32:04 UTC 2021
I didn't test it, but this reduces the cruft and should avoid the compiler
messages.
|barchart|
barchart :=
{ #'$schema' -> 'https://vega.github.io/schema/vega-lite/v5.json'.
#description -> 'A simple bar chart'.
#usermeta ->
({ #embedOptions ->
(export -> true.
compiled -> false.
editor: false } as: JsonObject).
#width -> 'container' } as: JsonObject
On Thu, Sep 2, 2021 at 4:14 PM tim Rowledge <tim at rowledge.org> wrote:
> I love this way of using dNU: to build as you go.
>
> The Parser fights back by getting all hissy about the unknown messages.
> Yes, one can handle this manually and so on in a browser, or I suppose
> filing in the code.
>
> > On 2021-09-02, at 3:01 AM, Levente Uzonyi <leves at caesar.elte.hu> wrote:
> >
> > ^JsonObject new
> > at: '$schema' put: '
> https://vega.github.io/schema/vega-lite/v5.json';
> > description: 'A simple bar chart';
> > width: 'container';
> > usermeta: (JsonObject new
> > embedOptions: (JsonObject new
> > export: true;
> > compiled: false;
> > editor: false));
>
>
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Strange OpCodes: PUS: PUrge System
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210902/66fb2b66/attachment.html>
More information about the Squeak-dev
mailing list
|