paint-brush
Catamorphisms for Java developersby@johnmcclean
2,369 reads
2,369 reads

Catamorphisms for Java developers

by John McClean6mJuly 19th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In this article we will examine in depth a useful concept, the catamorphism, commonly used in functional languages but rarely seen in <a href="https://hackernoon.com/tagged/java" target="_blank">Java</a>. Catamorphisms are very easy to implement, and typically only require a few lines of Java code. Those few lines of code add significant power to your internal APIs, effectively introducing compiler enforced, exhaustive structural pattern matching, the kind that can banish frustrating and difficult to stop bugs that sneak in through complex if / then / else spaghetti code.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Catamorphisms for Java developers
John McClean HackerNoon profile picture
John McClean

John McClean

@johnmcclean

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite