@djspiewak @debasishg what do you mean by "catamorphic encoding"? i can has gist plz?
-
-
Replying to @mergeconflict
@mergeconflict@djspiewak@debasishg fold vs. pattern matching.1 reply 0 retweets 0 likes -
Replying to @jsuereth
@jsuereth I understand that. I'm asking e.g. what would Either look like without case classes? /cc@djspiewak@debasishg1 reply 0 retweets 0 likes -
Replying to @mergeconflict2 replies 0 retweets 0 likes
-
Replying to @djspiewak
@djspiewak@mergeconflict@jsuereth@debasishg So using a virtual fold method instead of pattern matching, then?1 reply 0 retweets 0 likes -
Replying to @crstry
@crstry@mergeconflict@jsuereth@debasishg Yes. That is the catamorphic encoding of an ADT.2 replies 0 retweets 0 likes -
Replying to @djspiewak
@djspiewak@crstry@mergeconflict@jsuereth It's inefficiency is due to the overhead of closures on the JVM ? Subtyping will be faster ?4 replies 0 retweets 0 likes -
Replying to @debasishg
@debasishg@crstry@mergeconflict@jsuereth .@nuttycom came up with a clever hack to avoid *some* of this overhead, but not all.1 reply 0 retweets 1 like -
Replying to @djspiewak
@djspiewak@crstry@mergeconflict@jsuereth@nuttycom share the trick ? smart constructor as@dibblego mentioned a la none, some in scalaz ?3 replies 0 retweets 0 likes -
Replying to @debasishg
@debasishg@crstry@mergeconflict@jsuereth@nuttycom@dibblego The smart constructor just a constructor that returns the ADT type1 reply 0 retweets 0 likes
@djspiewak @debasishg @crstry @mergeconflict @jsuereth @nuttycom smart constructor is a lot more than that, but I am lost in this discussion
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.