Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
CraigJPerry
2y ago
0 comments
Share
Product types are one kind of algebraic data type, only 5 languages from that TIOBE page don’t have them so most common langs have ADTs
0 comments
default
newest
oldest
dannymi
2y ago
When you have natural numbers and a multiplication operation (product) would you say that those form an algebra? (ADT means algebraic data type)
CraigJPerry
OP
2y ago
You’ve got both a carrier (the set of natural numbers) and a morphism (product operation) so yeah you have an algebra.
j
/
k
navigate · click thread line to collapse