Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8926051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:52:14+00:00 2026-06-15T07:52:14+00:00

Since Go has channels, I was wondering why the standard library doesn’t appear to

  • 0

Since Go has channels, I was wondering why the standard library doesn’t appear to have been designed to use them for IO as well.

There are reader and writer types for that instead but what would be the problem with using channels?

A function could return a channel of byte slices (assuming single-byte, or even single-bit returns are too inefficient) and take in a channel for cancellation requests and a channel for error reporting.

-The curious Go novice.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T07:52:16+00:00Added an answer on June 15, 2026 at 7:52 am

    Channels are a good fit for communicating between goroutines. When a program does something simple, like for example reading stdin, doing something with the stream and outputting the result to stdout – then using a channel is an overkill, unnecessarily hurting performance.

    As long as the standard library doesn’t provide in some place something specific to goroutines communicating with each other, there’s no good reason to model simple operations, like those of io.Reader or io.Writer using channels, respective to have a channel based method set (API).

    Additionally, where needed, the simple implementation can be wrapped in a channel, while the opposite, to “unwrap” a channel implementation back to its primitive is not possible. Also, Go authors obviously like explicitness, leading to performance bottlenecks not being hidden (and surprising).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just read on this answer (answer has since been removed) and I'm sure
I have finally decided to go with the Entity Framework since it has the
I'm having this issue since offline_access has been deprecated and migration enabled. I'm getting
Well I don't think that it's really important but since the program has to
Well, it appears that now that WCF has been out for a while, the
I have an object named game which has a property called channels (which is
It seems to be that, the AMR support of AudioQueue has been disappeared since
has anyone been able to use the new Sound method loadPCMFromByteArray in Flash 11
Since PHP has no custom-class type-casting, how would I go about doing the PHP
Since UNIX has all those wonderful filter-like programs (such as grep , sed ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.