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

gist for ‘-’.IO is wrong (‘-’.IO.say) #5306

Closed
p6rt opened this issue May 8, 2016 · 6 comments
Closed

gist for ‘-’.IO is wrong (‘-’.IO.say) #5306

p6rt opened this issue May 8, 2016 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented May 8, 2016

Migrated from rt.perl.org#128097 (status was 'resolved')

Searchable as RT128097$

@p6rt
Copy link
Author

p6rt commented May 8, 2016

From @AlexDaniel

Code​:
IO​::Handle.new(​:path(â��-â��)).path.say

Result​:
"".IO

OK, let's try "".IO

Code​:
"".IO

Result​:
Must specify something as a path​: did you mean '.' for the current directory?
  in block <unit> at -e line 1

It does not work. But this does​:

Code​:
"-".IO.say

Result​:
"".IO

@p6rt
Copy link
Author

p6rt commented May 13, 2016

From @coke

On Sat May 07 17​:30​:05 2016, alex.jakimenko@​gmail.com wrote​:

Code​:
IO​::Handle.new(​:path(â��-â��)).path.say

Result​:
"".IO

OK, let's try "".IO

Code​:
"".IO

Result​:
Must specify something as a path​: did you mean '.' for the current
directory?
in block <unit> at -e line 1

It does not work. But this does​:

Code​:
"-".IO.say

Result​:
"".IO

The bug report seems to expect that you can use a gist output, EVAL it, and get the original back. That is what .perl is for, not .gist; Given that, do you still wish to keep this issue open? (and if so, can you clarify the justification)

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented May 13, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented May 13, 2016

From @AlexDaniel

Given that, do you still wish to keep this issue open? (and if so, can
you clarify the justification)

Yes. I'd say that "-".IO (which is also a valid code) is more user readable than "".IO (which is not a real thing).

That being said, I think that it is also OK to print something like STDIN. But why bother if "-".IO will do just fine.

@p6rt
Copy link
Author

p6rt commented Dec 22, 2016

From @MasterDuke17

Fixed in rakudo/rakudo@376950acf2
Tests added in Raku/roast@2759cf2fce

@p6rt p6rt closed this as completed Dec 22, 2016
@p6rt
Copy link
Author

p6rt commented Dec 22, 2016

@MasterDuke17 - Status changed from 'open' to 'resolved'

@p6rt p6rt added the IO label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant