DEV Community

Discussion on: Composing predicates

Collapse
 
macsikora profile image
Pragmatic Maciej

Really nice showing of the good way of operator overloading. Good job!

Collapse
 
gillchristian profile image
Christian Gill

Operators ares just functions, right? 😅

Collapse
 
macsikora profile image
Pragmatic Maciej

Yep but your example shows how we can make monoids from anything we want really and also give nice syntax to it.