Skip to content

Perlguts: standardize on the _argument_stack#24362

Open
richardleach wants to merge 1 commit intoPerl:bleadfrom
richardleach:argument_stack
Open

Perlguts: standardize on the _argument_stack#24362
richardleach wants to merge 1 commit intoPerl:bleadfrom
richardleach:argument_stack

Conversation

@richardleach
Copy link
Copy Markdown
Contributor

Prior to this commit, the same stack was referred to as the "argument stack" in some places and the "value stack" in others.

The former seems to have greater precedence and is the only variant used in other pod docs, so instances of the latter term have been reworded for consistency and reduced reader confusion.

Closes #21443


  • This set of changes does not require a perldelta entry.

Prior to this commit, the same stack was referred to as the "argument stack"
in some places and the "value stack" in others.

The former seems to have greater precedence and is the only variant used in
other pod docs, so instances of the latter term have been reworded for
consistency and reduced reader confusion.
@Leont
Copy link
Copy Markdown
Contributor

Leont commented Apr 12, 2026

IMO value stack is a much better name than argument stack (even if the latter has more history), most obviously because it's not only used for argument but also for return values.

@tonycoz
Copy link
Copy Markdown
Contributor

tonycoz commented Apr 13, 2026

I think "value stack" is the better name, but most of perl (comments, other documentation) calls it the "argument stack".

So if this does rename to "value stack" it should mention the "argument stack" name.

@leonerd
Copy link
Copy Markdown
Contributor

leonerd commented Apr 13, 2026

I added the "value stack" wording when I wrote about the various stacks in perlguts, largely because of Leon's observation there - it isn't just for arguments into a function, but also return values out of it. I'd prefer standardising on "value" rather than "argument" anyway, for that reason.

@iabyn
Copy link
Copy Markdown
Contributor

iabyn commented Apr 17, 2026 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Perlguts: Minor queries regarding the "Ref-counted arg stack" documentation

5 participants