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

deparsing is surprised by slip interpolation #4866

Open
p6rt opened this issue Dec 13, 2015 · 1 comment
Open

deparsing is surprised by slip interpolation #4866

p6rt opened this issue Dec 13, 2015 · 1 comment
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 13, 2015

Migrated from rt.perl.org#126905 (status was 'new')

Searchable as RT126905$

@p6rt
Copy link
Author

p6rt commented Dec 13, 2015

From zefram@fysh.org

With [perl #​126897] fixed, deparsing of some kinds of structure containing
Slip objects now runs into the interpolation of Slip objects into lists.
This leads to round-trip failures​:

my @​a = (11,22,33)
[11 22 33]
@​a[1] := slip(44,55)
(44 55)
@​a.perl
[11, slip(44, 55), 33]
@​a.perl.EVAL.perl
[11, 44, 55, 33]
@​a.List.perl
(11, slip(44, 55), 33)
@​a.List.perl.EVAL.perl
(11, 44, 55, 33)
@​a.Slip.perl
slip(11, slip(44, 55), 33)
@​a.Slip.perl.EVAL.perl
slip(11, 44, 55, 33)

The deparsing needs to take account of the interpolation, and produce
output that either avoids it or corrects for it. Before [perl #​126897],
of course, round-tripping of these structures failed in the more obvious
manner of turning the Slip into a List.

-zefram

@p6rt p6rt added the Bug 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