Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide higher-level self-typed traits for enumerations. #2

Open
ClaireNeveu opened this issue Apr 2, 2016 · 2 comments
Open

Provide higher-level self-typed traits for enumerations. #2

ClaireNeveu opened this issue Apr 2, 2016 · 2 comments
Assignees

Comments

@ClaireNeveu
Copy link
Owner

Use at Gawker has made it clear that people prefer to use traits rather than use EnumApi directly, e.g.

trait EnumAsString[Enum] { self: EnumApi[Enum] =>
  def asString(e : Enum) : String = asStringImpl(e)
}

Especially when combined with implicit wrapper classes, this really reduces boilerplate. Instead of redefining these all the time it would be better to add them into Macramé. I should also finally get around to publishing macrame-play and macrame-slick.

@ClaireNeveu ClaireNeveu self-assigned this Apr 2, 2016
@ClaireNeveu
Copy link
Owner Author

Doobie also looks interesting so probably a macrame-doobie too once I look into that more.

@ClaireNeveu
Copy link
Owner Author

Adding to this list macrame-scalaz which implements scalaz.Enum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant