JuliaIO / JuliaIO/TranscodingStreams.jl
Add do-syntax for transcoding streams
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 90
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
It would be nice if there was a constructor TranscodingStream{C,S}(predicate ...) which allows for the do-syntax, like such:
matrix = GzipDecompressorStream(open(path))
# stuff
return matrix
end
We have that for most Julia IO as far as I know.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the TranscodingStream constructor and the existing stream constructors that support Julia's do-syntax. Confirm how the proposed TranscodingStream{C,S}(predicate ...) form should behave with the GzipDecompressorStream example, then verify that the new constructor supports the intended scoped usage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100