Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on DRY is an over-rated programming principle?. Parent comment
- make_string_filename_style1
- make_string_filename_style2
- make_string_filename
Then make_string_filename consists of logic to use the right style.
Or one function and a Sum type to be called like:
makeStringFilename Style1 "somestring"
data FilenameStringStyles = Style1 | Style2
There are no comments on this comment yet.
- make_string_filename_style1
- make_string_filename_style2
- make_string_filename
Then make_string_filename consists of logic to use the right style.
Or one function and a Sum type to be called like:
Given sum type: