Skip to content

Should P and O return lvals? #99

Description

@dloscutoff

Currently, P and O return rvals, meaning that you can't do something like this to print and then reverse a variable:

R:Pa

But is there any reason not to allow that behavior? P and O don't modify their operand at all, they just have the side effect of outputting it. Since they pass it through unchanged, why not pass it through as an lvalue?

(Inspired by StringgnirtSStringgnirtSStringgnirtS, where the current shortest solution is 9 bytes, but an 8-byte solution L#a;R:Oa would be possible with this change.)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions