-
Notifications
You must be signed in to change notification settings - Fork 127
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
Why bytes
depends on collections
?
#1724
Comments
@volodya-lombrozo maybe it's better to refactor |
@yegor256 But we have that dependencies in |
@yegor256 reminder |
@volodya-lombrozo I have a strong feeling that we can remove |
@yegor256 there are two more places where collections are used is
and I'm about to add similar functionality to |
@maxonfjvipon or we can use recursion here, instead of |
@yegor256 @volodya-lombrozo we got rid of It seems the last step to independent What are your thoughts about it? |
@maxonfjvipon I believe that adding
Here, |
@yegor256 then I suggest the next plan:
WDYT? |
@maxonfjvipon I think it's a reasonable plan |
@yegor256 @maxonfjvipon Indeed, I've checked other objects and it seems that we use hashing only in |
@maxonfjvipon we may use hashing somewhere else too, in the future, but this feature may be present in a decorator of an object, not in every object. Its implementation in all objects are identical at the moment. |
@yegor256 where will be the right place for such decorator? If |
@maxonfjvipon I would keep it in |
@yegor256 Ok, let's place it there |
@volodya-lombrozo @maxonfjvipon |
@mximp You're right |
While implementing #1723, I encountered a strange issue: the
bytes
object depends on bothcollections.bytes-as-array
andcollections.list
objects, which greatly hampers testing capabilities as tests usebytes
from the local filesystem throughOyFake
. Here's why:OyFake
loads bytes from the local system at this path:src/main/eo/org/eolang/bytes.eo
src/main/eo/org/eolang/bytes.eo
holds thecollections.bytes-as-array
andcollections.list
objects.I know how to fix this with
OyRemote
(which will significantly decrease overall testing time actually), but my main concern is why are thecollections
objects outside of theeo-runtime
library? I strongly believe thateo-runtime
should be self-contained and that all other objects should depend on it. I suggest moving thecollections
objects intoeo-runtime
.The text was updated successfully, but these errors were encountered: