rfc:readline_interactive_shell_result_function
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rfc:readline_interactive_shell_result_function [2020/12/20 22:17] – tandre | rfc:readline_interactive_shell_result_function [2021/01/06 03:27] – tandre | ||
---|---|---|---|
Line 3: | Line 3: | ||
* Date: 2020-12-19 | * Date: 2020-12-19 | ||
* Author: Tyson Andre, tandre@php.net | * Author: Tyson Andre, tandre@php.net | ||
- | * Status: | + | * Status: |
* Implementation: | * Implementation: | ||
* First Published at: https:// | * First Published at: https:// | ||
Line 9: | Line 9: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | Many other REPLs (Read-Eval-Print Loops) that I'm familiar with print a (possibly truncated) representation of the result of expressions, | + | Many REPLs (Read-Eval-Print Loops) |
It would be useful to allow users to extend the functionality of the default interactive php shell ('' | It would be useful to allow users to extend the functionality of the default interactive php shell ('' | ||
Prior to this RFC, there was no way to extend the interactive php shell in this way. | Prior to this RFC, there was no way to extend the interactive php shell in this way. | ||
(I've seen https:// | (I've seen https:// | ||
+ | |||
+ | Because PHP's interactive shell is written in C, adding new features or bug fixes would require a lot of time getting familiar with | ||
+ | C programming, | ||
===== Proposal ===== | ===== Proposal ===== | ||
Line 42: | Line 45: | ||
* When $callback is null, removes the callback used to dump expression results. | * When $callback is null, removes the callback used to dump expression results. | ||
* | * | ||
- | * Currently, this always returns true, but future changes to the implementation may make it return false. | + | * Currently, this always returns true, but future changes to the implementation |
+ | | ||
*/ | */ | ||
function readline_interactive_shell_result_function(? | function readline_interactive_shell_result_function(? | ||
Line 84: | Line 88: | ||
* A parser may fail for code using new token types until the parser gets updated to handle the new token types. This stops being a concern after feature freezes. \\ Looping over '' | * A parser may fail for code using new token types until the parser gets updated to handle the new token types. This stops being a concern after feature freezes. \\ Looping over '' | ||
* How would crash/bug fixes of phpi or the parser be handled in patch releases of php if this was released with php? | * How would crash/bug fixes of phpi or the parser be handled in patch releases of php if this was released with php? | ||
- | * Automatically rewriting the code to namespace the parser and its dependencies with '' | + | * Automatically rewriting the code to namespace the parser and its dependencies with '' |
- | should not be used by libraries/ | + | |
</ | </ | ||
Line 95: | Line 98: | ||
===== Proposed Voting Choices ===== | ===== Proposed Voting Choices ===== | ||
+ | |||
+ | Voting starts on 2021-01-03 and ends 2021-01-17. | ||
+ | |||
Yes/No, requiring 2/3 majority | Yes/No, requiring 2/3 majority | ||
Line 100: | Line 106: | ||
* https:// | * https:// | ||
+ | * https:// |
rfc/readline_interactive_shell_result_function.txt · Last modified: 2021/02/03 00:39 by tandre