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

Remove implicit conversions to Int and String etc #39

Open
4 tasks
janekdb opened this issue Jun 14, 2015 · 0 comments
Open
4 tasks

Remove implicit conversions to Int and String etc #39

janekdb opened this issue Jun 14, 2015 · 0 comments

Comments

@janekdb
Copy link
Owner

janekdb commented Jun 14, 2015

Port has an implicit conversion to Int and String. Other types sport similar convenience views. However this notion does not apply to other type with more structure such as IP4Address.

Replace existing implicit views that have value with explicit conversions.

Consider a common method on all types that converts to a String that matches to the same value.

val t = new OctetPair(x, y)

t.asXXX match {
  case OctetPair(x, y) => will match
}
  • Add @deprecated(since = "2.1.0")
  • Remove support
  • Add replacements where necessary
  • Update documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant