Replies: 4 comments 4 replies
-
I believe scheme is a better fit for ZIP (and TAR.GZ) than a codec. Both TAR and ZIP are designed as a supersimple filesystem where you can CRUD (Create, Read, Update, Delete) files, so scheme is the way to go IMO. |
Beta Was this translation helpful? Give feedback.
-
There is one big advantage of the schemes, that it is higher level and so one could change internal implementation just by changing the scheme's name... if it would done correctly. |
Beta Was this translation helpful? Give feedback.
-
Let me try:
But it could conflict with the codec, and I am not sure it is "correct". |
Beta Was this translation helpful? Give feedback.
-
Sorry but I was not showing the "functionality" but its different "grammar" in a non-codec approch. I clearly misunderstood your question and didn't understood you were interested in its low-level aspects. That's too deep for me ;) . But I think that if you are seeing it as a (virtual) filesystem you should treat it as such as much as possible. The difficult part is to let the user manipulate the archive also as a "normal" file but if he/she then wants to use the archive functionality he will use your low-level scheme (or the codec if that will remain). |
Beta Was this translation helpful? Give feedback.
-
In my current Rebol version there is built in support for reading/writing ZIP archives using a dedicated codec. There are several usage examples in the codec's test file:
Rebol3/src/tests/units/codecs-test.r3
Lines 253 to 320 in 9c128dc
My question is, if it makes sense to also create a
zip
scheme? I have a feeling that scheme will not give me so much freedom like the codecs. On the other side, the scheme may make the zip feature more accessible. Is there anybody who wants the scheme and if so, how it should work?Beta Was this translation helpful? Give feedback.
All reactions