Closed
Description
Feature or enhancement
I want a shorthand for dictionaries
Code for a configuration:
{
'flavours': {
'chocolate': {
'type': 'dark'
}
}
}This will be long. Below is my idea. You can use this idea or make your own shorthand syntax:
{
'flavours'['chocolate']['type']: 'dark'
}
# Is same as
{
'flavours': {
'chocolate': {
'type': 'dark'
}
}
}Another example:
{
'flavours': {
'chocolate'['type']: 'dark',
'apple'['type']: 'red',
}
}
# Is same as
{
'flavours': {
'chocolate': {
'type': 'dark'
},
'apple'{
'type': 'red'
}
}
}
