Dlang

Primer

Data struc­tures

Arrays

Symbols Table

The syn­tax is sim­ple and ac­tu­ally sim­i­lar to Golang: valueType[keyType]. The lit­eral is dif­fer­ent though, and it’s sim­pler than Go coun­ter­part:

int[string] dict = ["a": 1, "b": 2];

In fact, I feel like Dlang syn­tax is more con­cise and eas­ier to read than Go.