-
Notifications
You must be signed in to change notification settings - Fork 10
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
Overall design questions #17
Comments
Hi @salvalcantara, The motivations behind the very existence of
[3] is the default option if you want to extend a third party library. This brings us to your original question (1). It is true to you can use the Java classes directly. This has been possible for a while, but yet again most projects use the Scala wrapper. A couple of reasons off the top of my head:
So to summarize:
That said, very good food for thought! I will think about from your perspective and comment back! Thank you! |
Hi @ariskk, thanks for your replies. I've got some more questions regarding the scope of this library:
|
Hi @salvalcantara ! Re Scala 2.13, there are two options:
|
BTW @ariskk |
Flink4s requires an in implicit |
Hey @ariskk, have you seen this: https://github.com/findify/flink-scala-api? It clearly overlaps with this project and seems way more advanced. I came across this here: https://lists.apache.org/thread/3ghw0cvkftv349j9x4j3h1twzwt75fwj. |
Hey @salvalcantara |
@ariskk I think it would make more sense to unite forces in |
@ariskk Another thing I noticed is that you use case classes for everything (e.g., |
Hi @ariskk,
I am learning Scala 3 and considering the transition from Scala 2 in the context of Flink. Since this is yet a nascent (but exciting!) project I would like to ask a few questions about the overall design at this early stage:
Is it really necessary to wrap the Java classes? Why not using the Java API classes directly? For example, I took a quick look at [1] and overall it looks good (without any scala wrappers whatsoever if I'm not mistaken). I guess the idea is to enhance ergonomics/make things more Scala idiomatic (similar to [2]) but at first sight for this case in particular I cannot see a huge win. I think the advantages should be clearly stressed/demonstrated in the readme, so that justification is out of the way.
Have you considered other design options (other than composition)? Namely [3]:
REFERENCES:
The text was updated successfully, but these errors were encountered: