Better HN
topnewbestaskshowjobs
Log inSign up

phischu

6 karma · joined Jun 22, 2016 (10y ago) · 2 submissions

Submissions

comment 10y ago · link · parent

Thank you.

comment 10y ago · link · parent

The linked page links to a set of slides: http://www.slideshare.net/Odersky/compilers-are-databases

I have a question regarding slides 29 to 31.

The author says an untyped tree is represented as Tree[Nothing]. This leads to undesired variance behavior which is in turn overriden.

But there cannot be any instances of type Tree[Nothing] because there are no instances of type Nothing. Wouldn't an untyped tree be better represented as Tree[Unit]?