by antonvs · 5mo ago · 0 comments
p := struct {
Name string
Age int
}{
Name: "Alice",
Age: 30,
}I was just saying that for completeness, Go should probably be mentioned in that list since it's become a pretty significant language.
(For the record, I'm an absolute Go hater, but I'm also a PL enthusiast, so...)
That said, I didn't know about Go's support for inline struct definitions like that!