Skip to content

shaun-whitely/java-free

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Free Monad Pattern in Java

Whilst Java doesn't support higher-kinded types, it is still possible to develop an algebra and interpreter in a style similar to free monads.

Java does not support algebraic data types. Instead, the visitor pattern is used, providing type safety over an instanceof approach, at the cost of additional boilerplate.

About

Free Monads Example in Java

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages