Skip to content
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

x/playground: support multifile playground code #3806

Closed
gopherbot opened this issue Jul 6, 2012 · 13 comments
Closed

x/playground: support multifile playground code #3806

gopherbot opened this issue Jul 6, 2012 · 13 comments

Comments

@gopherbot
Copy link

by ajmani:

play.golang.org is used frequently on the list to share example code, report bugs, and
discuss solutions to coding problems.  But since it only populates one source file,
there's no way to use play.golang.org to discuss issues around visibility (exported vs.
unexported symbols), which is an important element of API design.  It would be great if
play.golang.org could support multiple text windows for different files that are then
compiled and linked into a single binary.
@robpike
Copy link
Contributor

robpike commented Jul 12, 2012

Comment 1:

Labels changed: added priority-later, removed priority-triage.

Owner changed to @adg.

Status changed to Accepted.

@gopherbot
Copy link
Author

Comment 3 by ralph.corderoy:

A related, and perhaps simpler, enhancement would be an optional textarea for stdin.
Lots of little examples could use a few lines of accompanying text to process,
just as Unix shell examples often have a "cat foo" before the "bar <foo".

@rsc
Copy link
Contributor

rsc commented Nov 27, 2013

Comment 4:

Labels changed: added go1.3maybe.

@rsc
Copy link
Contributor

rsc commented Dec 4, 2013

Comment 5:

Labels changed: added release-none, removed go1.3maybe.

@adg
Copy link
Contributor

adg commented Dec 4, 2013

Comment 6:

Labels changed: added repo-playground.

@rsc rsc added this to the Unplanned milestone Apr 10, 2015
@rsc rsc changed the title website: support multifile playground code x/playground/website: support multifile playground code Apr 14, 2015
@rsc rsc modified the milestones: Unreleased, Unplanned Apr 14, 2015
@adg adg removed their assignment May 27, 2016
@dlsniper
Copy link
Contributor

This one seems easy enough to encourage new gophers to contribute to it, should it get a label to mark it as such?

@bradfitz
Copy link
Contributor

Sure. It used to be much harder when it ran on internal Google infrastructure, but nowadays it's just a Docker container.

@ysmolski ysmolski changed the title x/playground/website: support multifile playground code x/playground: support multifile playground code May 12, 2018
@ysmolski
Copy link
Member

Don't want to be a party pooper, but do we really need to have this? I mean, it's been 6 years already and nobody wanted even to try to implement it... Would it be a game changer if we had such a feature? What about relation to go modules? I am thinking out loud just to initiate a feedback from the community.

@andybons

@andybons
Copy link
Member

andybons commented Oct 29, 2018

I'm less inclined to want this feature given that other services provide it (https://repl.it comes to mind). The maintenance burden for something like this would be very high. I would need to understand why the playground would need to be in this space to begin with. Would the impact be worth the effort?

I like that play.golang.org (and various methods of embedding it) are relatively simple implementations that are highly effective. If users wish for something more with more features, they can get it via the other tools that exist (for example, https://goplay.space/).

Multiple files seems like overkill for this product.

@ysmolski
Copy link
Member

I wanted to implement this feature when I finished the first patch to playground. But now after some time and some more work done, I see the ratio of profit/maintenace_cost as close to zero. I appreciate the inarticulate simplicity of playground, both externally and internally.

@andybons
Copy link
Member

Closing since other products do it better than we wish to at the moment.

@nathany
Copy link
Contributor

nathany commented Oct 29, 2018

It would've been nice for newcomers learning about testing, but using an alternative playground probably makes more sense.

@ysmolski
Copy link
Member

It is possible to run tests and examples in Playground: https://play.golang.org/p/5Ef482JD2Lp

@golang golang locked and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants