Type Systems Explained with Examples
thevaluable.dev
Type Systems Explained with Examples
1–10 of 34 posts
Re: Type Systems Explained with Examples
#2It will change the way you think about types after this.
Re: Type Systems Explained with Examples
#3If anyone is interested in Type systems and what's a type, I highly recommend watching the first 20 mins of Sean Parent's presentation: https://youtu.be/sWgDk-o-6ZE It will change the way you think about types after this.
Re: Type Systems Explained with Examples
#4In Self, you have a cow. You ask the cow to moo. It moos.
In Java, you have a cow. You construct a CowMooFactory to create an MooIpml. The MooImpl moos.
In Python, you have a cow. You ask it to moo. It quacks.
In C, you have a pointer to a cow. You ask it to moo. Segmentation fault (core dumped).
Re: Type Systems Explained with Examples
#5I would pay good money for a comparison of type systems, delivered in the vein of Cow Economics. In Self, you have a cow. You ask the cow to moo. It moos. In Java, you have a cow. You construct a CowMooFactory to create an MooIpml. The MooImpl moos. In Python, you have a cow. You ask it to moo. It quacks. In C, you have a pointer to a cow. You ask it to moo. Segmentation fault (core dumped).
Re: Type Systems Explained with Examples
#6I would pay good money for a comparison of type systems, delivered in the vein of Cow Economics. In Self, you have a cow. You ask the cow to moo. It moos. In Java, you have a cow. You construct a CowMooFactory to create an MooIpml. The MooImpl moos. In Python, you have a cow. You ask it to moo. It quacks. In C, you have a pointer to a cow. You ask it to moo. Segmentation fault (core dumped).
In Ruby, your value moos. Could be a cow; might be a MooDuck. Do you really care?
Re: Type Systems Explained with Examples
#7If anyone is interested in Type systems and what's a type, I highly recommend watching the first 20 mins of Sean Parent's presentation: https://youtu.be/sWgDk-o-6ZE It will change the way you think about types after this.
CppCon 2015: Sean Parent "Better Code: Data Structures"
Did you mean instead this video? https://www.youtube.com/watch?v=mYrbivnruYw Goals for Better Code - Implement Complete TypesRe: Type Systems Explained with Examples
#8If anyone is interested in Type systems and what's a type, I highly recommend watching the first 20 mins of Sean Parent's presentation: https://youtu.be/sWgDk-o-6ZE It will change the way you think about types after this.
That video is titled CppCon 2015: Sean Parent "Better Code: Data Structures" Did you mean instead this video? https://www.youtube.com/watch?v=mYrbivnruYw Goals for Better Code - Implement Complete Types
Re: Type Systems Explained with Examples
#9If anyone is interested in Type systems and what's a type, I highly recommend watching the first 20 mins of Sean Parent's presentation: https://youtu.be/sWgDk-o-6ZE It will change the way you think about types after this.
Maybe I missed something, or maybe I need to watch more. Can you explain why you recommend this segment in more detail?
Re: Type Systems Explained with Examples
#10I would pay good money for a comparison of type systems, delivered in the vein of Cow Economics. In Self, you have a cow. You ask the cow to moo. It moos. In Java, you have a cow. You construct a CowMooFactory to create an MooIpml. The MooImpl moos. In Python, you have a cow. You ask it to moo. It quacks. In C, you have a pointer to a cow. You ask it to moo. Segmentation fault (core dumped).
In ML, your value moos. It is inferred to be a cow. In Ruby, your value moos. Could be a cow; might be a MooDuck. Do you really care?