Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Parse, Don't Validate (2019). Parent comment
I typically design code around things like this with a sum type like:
data Header = KnownHeader1 | KnownHeader2 | UnknownHeader String String
There are no comments on this comment yet.
I typically design code around things like this with a sum type like:
Then I typically don't offer any extra support or extended functionality for the cases where the type is `UnknownHeader`.