logoalt Hacker News

grumpyproletoday at 9:22 AM1 replyview on HN

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?


Replies

sfn42today at 10:04 AM

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.

show 2 replies