3 ms·
Without the hyphen configs value would be an associative array. With it it’s a list. I’ve been editing long sublime-syntax files recently and I do not like it
by breck 8y ago
Without the hyphen configs value would be an associative array. With it it’s a list.
I’ve been editing long sublime-syntax files recently and I do not like it much. But I’m also not sure if JSON would be better for such a thing.
- jayd16 8y agoWhats the point of a list of tuples? Order? Json seems more immediately obvious and consistent in this case ie [{a:b},...]
- detaro 8y agoIt's not a list of tuples, it's a list of dictionaries.
- jayd16 8y agoAh, but my confusion just deepens my point, haha.
- detaro 8y agoIt's mostly a question of what you're familiar with. JSON using [] and {} to denoting list vs dict isn't fundamentally easier than "-" and a prefix-less list of key:value pairs. YAML has a bunch of extra complexity, but IMHO this difference is really not it.
- afiori 8y agoFrom a syntax standpoint parenthesis are extremely more clear than prefixes+whitespace (maybe less readable).