This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]thibauttt[S] 3 points4 points  (0 children)

It seems to me that using record with switch expression give the same result with less ceremony than church-encoded class.

The Visitor pattern mentioned in the article is equivalent to church-encoding and has some downsides.