Skip to content

Better Ids, more serializable

Compare
Choose a tag to compare
@johnynek johnynek released this 14 Feb 22:18
· 63 commits to master since this release
9d9d844

This is slightly binary incompatible and has the following changes:

  1. Make sure Id[T] is never equal for two different instances.
  2. Give a Long rather than Int sequence number to each Id, which is only used for toString.
  3. Due to the above, Dag no longer needs to know the nextId.
  4. add Serializable to all the types.
  5. improve the Literal hashCode/equals code a bit more.