dazzledbeans @lemmy.world to Programmer Humor@lemmy.ml · 11 months agoWith PieMixinlemmy.worldimagemessage-square5fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageWith PieMixinlemmy.worlddazzledbeans @lemmy.world to Programmer Humor@lemmy.ml · 11 months agomessage-square5fedilink
minus-squareUFO@programming.devlinkfedilinkarrow-up0·edit-211 months agoIn Scala: case class Fix[F[_]](unfix: F[Fix[F]]) case class Pie[T](filling: T) def ohNo: Fix[Pie] = Fix(Pie(ohNo))
In Scala:
case class Fix[F[_]](unfix: F[Fix[F]]) case class Pie[T](filling: T) def ohNo: Fix[Pie] = Fix(Pie(ohNo))
Type erasure sure does go brr…