Closed agemooij closed 9 years ago
Hi Age,
The idea of creating a Scala version of this library has been postponed for too long and I'm happy you'd like to help.
As for the project, I agree with you that SBT would be a better candidate mainly because of the cross-build support.
What I'm not sure, is whether it is good idea to keep one Git repository for both libraries (multi-module) or have a separate one for Scala.
I'm more inclined to create a separate one so that the library can have an independent release cycle but in this case we need to come up with a good repo name. Some ideas: commons-ip-math-scala commons-ip-math-4s ...
what do you think?
I agree that a separate repository makes sense. Of the two names you mentioned I would prefer "commons-ip-math-scala".
I've created a new project: commons-ip-math-scala. I'm closing this one, feel free to move the discussion over there.
Hi
This library should get a lot more attention since there's nothing else available in the Java/Scala space for dealing with CIDRs, ip ranges, etc. I was at RIPE about 6 years ago and it's great to see a modern OS version of the good old IP resource library.
I'm working in Scala so it would be great if there were a more idiomatic Scala version of this library. It would be totally fine if it was implemented as a simple wrapper around the Java stuff
I wrote the following very basic Scala wrapper around Ipv4 to make things a bit more idiomatic (and immutable):
If you like, you could create a new project (preferably an SBT one) and I could send a PR with the above code (and probably some more) to kickstart things.
Let me know what you think.