top | item 46844774

(no title)

grumpyprole | 29 days ago

Most languages have poor support for structural types though. If you try and join two records together (like a SQL join), what will your favourite language infer then?

discuss

order

sfn42|29 days ago

C# has anonymous types which is pretty much the same thing. Though I prefer to declare actual types for most usecases, I'll only use anonymous types for intermediate results and such.

grumpyprole|29 days ago

I certainly don't mean to knock nominal types. But I think structural types are more fundamental. A language would only need a single "newtype" or "nominal" keyword to create nominal types from structural types.

KellyCriterion|28 days ago

Claude is "very good" in applying >var< continuously :-D