longevity link

Are you developing in Scala against a NoSQL database such as MongoDB or Cassandra? Looking for more than just driver-level support for your persistence operations? If so, then you need to take a look at longevity: a Domain Driven Design persistence framework for Scala and NoSQL. longevity is ready for you to use today! Please give it a try.


Scaladoc Macros

I've seen these used a lot in the Scala language source code, but I haven't gotten around to trying it until now. I have two public methods that have the same constraint on, and initially was maintaining two copies of the documentation describing the constraint:

This generated Scaladoc that looked like so:

Using Scaladoc's @macro syntax, (described in here somewhere), I can remove the repeated code as follows:

The generated Scaladoc is identical.

No comments:

Post a Comment