Package us.bpsm.edn.protocols

This package provides the basis for implementing the printer.

See: Description

Package us.bpsm.edn.protocols Description

This package provides the basis for implementing the printer.

A protocol is a function (method) of which implementations can be provided for any number of types.

What this package provides is not quite a protocol, but something a bit more general: a kind of Map which looks up values by keys. The values can be of any type, but the keys must be of type Class. The trick here is that lookup takes inheritance into account such that we don't need to specify an implementation for every concrete type we expect to encounter.

Copyright © 2019. All rights reserved.