News for hackers. Stuff that matters.
Re:Record Type Inference for Dummies by antonvs on Friday June 26, 2026 @08:47AM (#48686012)
The article missed Go’s anonymous structs:

    p := struct {
        Name string
        Age  int
    }{
        Name: "Alice",
        Age:  30,
    }
Re:Record Type Inference for Dummies by Timwi on Saturday June 27, 2026 @02:59AM (#48695859)
Technically anonymous I suppose because the struct is not named, but the article is mostly about type inference while your example has every type made explicit.
Re:Record Type Inference for Dummies by antonvs on Saturday June 27, 2026 @11:41AM (#48699204)
The article mentions Typescript and Purescript under the heading "Static typing" - their definitions correspond exactly to the Go definition, with explicit types for the members.

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...)

Re:Record Type Inference for Dummies by Gabriel439 on Saturday June 27, 2026 @01:34PM (#48700099)
Author here: those type annotations are optional in the case of TypeScript and PureScript; I only included the type annotations for clarity

That said, I didn't know about Go's support for inline struct definitions like that!