News for hackers. Stuff that matters.
Re:Type Systems Explained with Examples by samatman on Monday September 28, 2020 @10:52PM (#24623760)
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?

Re:Type Systems Explained with Examples by grawprog on Tuesday September 29, 2020 @12:05AM (#24624065)
In Assembly, there is no cow, no mooing, there's a bunch of places where parts of cows and moos may or may not be stored. It's up to you to pick the parts of the cows and moos in the correct order, then send the numbers representing the places where the cow and moo parts are stored to a magic box that interprets your sequence of numbers and puts the cow into the correct order after which you jump over to the cow and tickle its belly until it moos.
Re:Type Systems Explained with Examples by dllthomas on Tuesday September 29, 2020 @10:32PM (#24635174)
In ML, it's inferred if it might, in any potential future, moo.
Re:Type Systems Explained with Examples by leloctai on Tuesday September 29, 2020 @01:59AM (#24624549)
So what's the difference between ruby and python?
Re:Type Systems Explained with Examples by ClikeX on Tuesday September 29, 2020 @02:32AM (#24624713)
During the Ruby's runtime the cow might get monkeypatched into a bat.
Re:Type Systems Explained with Examples by tomp on Tuesday September 29, 2020 @06:11AM (#24625852)
In Ruby, the cow moos automatically.
Re:Type Systems Explained with Examples by shadowgovt on Tuesday September 29, 2020 @10:29PM (#24635163)
About 3 seconds, depending on how many cows you have. ;)