miniblog.

← Back to all posts
11
Maybe Not by Rich Hickey: https://youtu.be/YR5WdGrpoug Makes an interesting point on Maybe/Either: they require updating the call site, even for compatible changes! E.g. from returning a Maybe Foo to returning a Foo. Argues for *union* types.

1 Comment

@wilfredh This is a rediscovery of Design-By-Contract concepts first thought of by Bertrand Meyers in the Eiffel language. The innovation is applying it in a dynamically typed context. Not dissing the idea, but happy to see it come back. It's very much needed. While TDD works great for most things, it's also tedious in others. Using DbC and TDD together has yielded both great results and much more compact program listings for me. This provides an even greater incentive to learn Clojure.