rfc:process_object_name
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
rfc:process_object_name [2023/10/19 19:47] – created kocsismate | rfc:process_object_name [2023/11/07 21:02] (current) – kocsismate | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Straw poll: How to name the Process resource after it' | + | ====== Straw poll: How to name the Process resource after it is converted to an object ====== |
* Date: 2023-10-19 | * Date: 2023-10-19 | ||
* Author: Máté Kocsis kocsismate@php.net | * Author: Máté Kocsis kocsismate@php.net | ||
- | * Status: | + | * Status: |
+ | * Implementation: | ||
===== Introduction ===== | ===== Introduction ===== | ||
+ | |||
+ | Since PHP 8.0, PHP resources are actively converted to " | ||
+ | |||
+ | Originally, the implementation used the '' | ||
===== Discussion ===== | ===== Discussion ===== | ||
- | ===== Vote ===== | + | ==== Process |
- | First choice: | + | The most straightforward and clearest name, since this is also how the respective resource is called. On the other hand, the name might clash with userspace class names, although it should be mentioned that the global namespace is reserved for PHP itself. |
- | <doodle title="How to name the Process resource" | + | ==== Proc ==== |
- | * Process | + | |
- | * ProcessHandle | + | This name is consistent with the name of the related functions. However, according to the [[rfc: |
- | * OS\Process | + | |
- | * OS\ProcessHandle | + | ==== ProcessHandle ==== |
- | </doodle> | + | |
+ | This name is a good compromise between clarity and addressing the backward compatibility concerns. Using the '' | ||
+ | |||
+ | ==== OS\Process | ||
+ | |||
+ | Using the '' | ||
+ | |||
+ | ===== Vote ===== | ||
+ | |||
+ | This is a ranked-choice poll (following [[https:// | ||
- | Second | + | ==== First choice |
- | <doodle title=" | + | <doodle title=" |
* Process | * Process | ||
* ProcessHandle | * ProcessHandle | ||
* OS\Process | * OS\Process | ||
- | * OS\ProcessHandle | ||
</ | </ | ||
- | Third choice: | + | ==== Second |
- | <doodle title=" | + | <doodle title=" |
* Process | * Process | ||
* ProcessHandle | * ProcessHandle | ||
* OS\Process | * OS\Process | ||
- | * OS\ProcessHandle | ||
</ | </ | ||
- | Fourth | + | ==== Third choice |
- | <doodle title=" | + | <doodle title=" |
* Process | * Process | ||
* ProcessHandle | * ProcessHandle | ||
* OS\Process | * OS\Process | ||
- | * OS\ProcessHandle | ||
</ | </ | ||
rfc/process_object_name.1697744832.txt.gz · Last modified: 2023/10/19 19:47 by kocsismate