f.e in Python:
mappingName = { 'key1': 'value1', 'key2': 'value2' } What are the best practices to achieve that?
f.e in Python:
mappingName = { 'key1': 'value1', 'key2': 'value2' } What are the best practices to achieve that?
Sure, you may do this in constructor:
mapping (string => string) myMapping; constructor () public { myMapping ["key1"] = "value1"; myMapping ["key2"] = "value2"; } mapping, then he also knows the basic initialization syntax. It makes sense that he's looking for a "non-basic" syntax.