News for hackers. Stuff that matters.
Re:A bad citizen in Javaland (2006) by Someone on Thursday December 03, 2015 @09:05AM (#10669571)
"Someone somewhere in the world drank a cup of coffee, which means that he now has an empty cup instead of a full cup"

That cannot happen in an immutable world. To fill an empty cup, you cons a cup and its contents. To get an empty cup again, you take the car of the cons. The full cup will only get garbage collected if you do not reference it anymore.

Re:A bad citizen in Javaland (2006) by catnaroek on Thursday December 03, 2015 @04:52PM (#10672954)
> To fill an empty cup, you cons a cup and its contents.

That simply has the wrong type in mathematically civilized languages like Standard ML or Haskell.

> The full cup will only get garbage collected if you do not reference it anymore.

This is orthogonal to functional programming. You can avoid the need for a garbage collector with substructural types.