2 ms·
> And like Perl, I also like that associative arrays / dictionaries are top level: let people = ["Anna": 67, "Beto": 8, "Jack": 33, "Sam": 25] Is this a p
by SideburnsOfDoom 12y ago
> And like Perl, I also like that associative arrays / dictionaries are top level:
let people = ["Anna": 67, "Beto": 8, "Jack": 33, "Sam": 25]
Is this a perl-ism? It's not much more inference than C#:
var people = new Dictionary<string, int> {{"Anna", 37}, {"Beto", 8}};
or a JavaScript array of objects.
Also "+= " on strings extends beyond just JS (it works in C# too) and likely several others.
Whichever more modern language you're familiar with, you'll probably see an echo of it there.