scala-hamsters / hamsters

A mini Scala utility library
Apache License 2.0
291 stars 23 forks source link

Use macros to generate UnionN and UnionNType #13

Closed loicdescotte closed 8 years ago

loicdescotte commented 8 years ago

We should use macros to generate union classes from 1 to n, n to be defined.
n should not be to high as t would not be convenient to pattern match.

https://github.com/scala-hamsters/hamsters/blob/master/src/main/scala/io/github/hamsters/Union.scala#L4

dgouyette commented 8 years ago

Working on it. Could you assign it to me ?

loicdescotte commented 8 years ago

@dgouyette I think you have to accept my invite to the hamsters team first

dgouyette commented 8 years ago

I received one. Clicked on it. Got Sorry, that repository invitation does not exist.