Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Don't let dicts spoil your code (2020). Parent comment
Can you elaborate on the functional difference between
- an enhanced dictionary where certain keys are guaranteed as part of the type, and
- a record type (class, struct, whatever) with named fields?
There are no comments on this comment yet.
Can you elaborate on the functional difference between
- an enhanced dictionary where certain keys are guaranteed as part of the type, and
- a record type (class, struct, whatever) with named fields?