Tx for advice. P.S.: I got nested dictionaries after JSON API call at wunderground weather API. To see all the response in Pharo inspector "live" is really great :-)
BR Mike On Mon, Apr 24, 2017 at 7:51 PM, Cyril Ferlicot D. <cyril.ferli...@gmail.com > wrote: > Le 24/04/2017 à 19:42, Markus Böhm a écrit : > > May I ask: > > What's the idiomatic way to retrieve values from nested dictionaries? > > > > (((dict1 at: 'key1') at: 'key2') at: 'key3') > > > > Are all the brackets really necessary? > > > > BR Mike > > Hi, > > To know if brackets are necessary you can use the "Format" option in > your method. > > Right click -> format > > or cmd/alt/ctrl + shift + f > > In this case you can just write: > > ((dict1 at: 'key1') at: 'key2') at: 'key3'. > > > > -- > Cyril Ferlicot > https://ferlicot.fr > > http://www.synectique.eu > 2 rue Jacques Prévert 01, > 59650 Villeneuve d'ascq France > >