Add do-syntax for transcoding streams

Open
#97 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
julia
Domain
api

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.

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.

Dominant language
Julia
Stars
90
Forks
26
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaIO/TranscodingStreams.jl

All issues in JuliaIO/TranscodingStreams.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.