April 24, 2017
5:51 p.m.
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