longevity 0.11 - API simplifications

16 views
Skip to first unread message

John Sullivan

unread,
Aug 30, 2016, 1:51:51 AM8/30/16
to longevity-users
Just a quick note to say the 0.11 release is out. It's just a couple of API simplifications, but they make the user code more elegant, so I wanted to get it out to users right away. Plus, I want to use them in a talk I'm working on, so I wanted them up on an official release.

The first change, you no longer has to define val polyType in their DerivedType, or polyPType in the DerivedPType.

The second change, you can do this:

case class Uri(uri: String) extends ValueObject
val subdomain = Subdomain(???, ???, ETypePool(ValuteType[Uri]))

Instead of this:

case class Uri(uri: String) extends ValueObject
object Uri extends ValueType[Uri]
val subdomain = Subdomain(???, ???, ETypePool(Uri))

Next release, I plan to add orderBy, offset, and limit to queries. By this point I think the query API will be complete, setting aside handling collection-based properties. I'm really looking forward to that.

Cheers!
Reply all
Reply to author
Forward
0 new messages