# Search results for "enum"

332 results, page 1 of 17. Each result is an email: results with the same thread number are in the same thread. The link opens the thread as Markdown, find the email in it by its number.

More for agents: search with https://staging.externals.io/search.md?q={query} · RFCs at https://staging.externals.io/rfc.md · JSON API at https://staging.externals.io/api · documentation at https://staging.externals.io/llms.txt

1. [Symbol implementation](https://staging.externals.io/message/105474.md) — email #105474 in thread #105472, by Dan Ackroyd on 2019-04-27
   > … a replacement to hard-coded identifiers where it are not really need. This seems quite similar to the idea of **enum**s. That Levi and Bob might have been working on: https://wiki.php.net/rfc/**enum** typehint Please could people …
2. [[Discussion] Native terminal helpers for PHP CLI](https://staging.externals.io/message/131788.md) — email #131788 in thread #131788, by Derick Rethans on 2026-07-07
   > Hi internals, Quick update: I have continued iterating on this based on the feedback here. The extension is now at v0.5.0, still pre-1.0, with the object/**enum** API shape preserved (Terminal\Terminal, Backend, Stream, Key …
3. [[Discussion] Native terminal helpers for PHP CLI](https://staging.externals.io/message/131974.md) — email #131974 in thread #131974, by Pratik Bhujel on 2026-07-16
   > … terminal/releases/tag/v0.6.0 The stream-aware methods now accept existing PHP stream resources as well as the **enum** defaults, so calls can use STDOUT, STDERR, STDIN, or php://stdout/php://stderr where the underlying stream can be …
4. [[RFC] [Discussion] Literal Scalar Types](https://staging.externals.io/message/131772.md) — email #131772 in thread #131772, by Seifeddine Gmati on 2026-07-05
   > … from a database or C extension, an HTTP status, or an 'asc'|'desc' that exists only at one API boundary. **Enum**s fit when you own the type and want a named domain model with backing and methods. They're a …
5. [[RFC] [Discussion] Literal Scalar Types](https://staging.externals.io/message/131679.md) — email #131679 in thread #131679, by Jorg Sowa on 2026-07-01
   > … Hardcoded literal types such as function f(1|2|3 $x): int { return $x; } are generally considered an anti-pattern. **Enum**s were specifically designed for these kinds of cases. However, the RFC does not explain why **enum**s are insufficient for …
6. [[php-src] PR #20903: GH-10497 (const obj->prop write) - language change notes](https://staging.externals.io/message/131550.md) — email #131550 in thread #131550, by Khaled Alam on 2026-06-28
   > … way; both forms from your example now work: c::o->b = 42; $c::o->b = 42; One consequence worth flagging: **enum** cases are class constants, so unset(**Enum**::Case->value) (and writes to readonly case properties) now raise the regular …
7. [[RFC] [Discussion] Literal Scalar Types](https://staging.externals.io/message/132128.md) — email #132128 in thread #132128, by Seifeddine Gmati on 2026-07-29
   > … literal kind is described in one place, added a paragraph to the introduction on where literal types fit next to **enum**s, tightened the reasoning in the matching semantics section, and added a short note on **enum** comparisons to the Performance …
8. [[RFC] Primary Constructors](https://staging.externals.io/message/131614.md) — email #131614 in thread #131565, by tim@bastelstu.be on 2026-06-29
   > … we want to add? To name three from the top of my mind: 1/ we still don't have stringable **enum**s 2/ we still don't have a solution for widening the type of a promoted property's set hooks …
9. [[RFC] Primary Constructors](https://staging.externals.io/message/131619.md) — email #131619 in thread #131565, by Nick Sdot on 2026-06-29
   > … we want to add? To name three from the top of my mind: 1/ we still don't have stringable **enum**s 2/ we still don't have a solution for widening the type of a promoted property's set hooks …
10. [[RFC] Working Groups](https://staging.externals.io/message/131725.md) — email #131725 in thread #131725, by Ben Ramsey on 2026-07-02
   > … VCS repositories, mailing lists) specified that working group policies should be documented in the working group's repository rather than **enum**erated in its charter For more details, see the full diff here: https://github.com/php/policies/pull/35/ changes …
11. [[RFC] [Discussion] Literal Scalar Types](https://staging.externals.io/message/132086.md) — email #132086 in thread #132086, by Seifeddine Gmati on 2026-07-23
   > … literal kind is described in one place, added a paragraph to the introduction on where literal types fit next to **enum**s, tightened the reasoning in the matching semantics section, and added a short note on **enum** comparisons to the Performance …
12. [[RFC] [Discussion] Literal Scalar Types](https://staging.externals.io/message/132089.md) — email #132089 in thread #132089, by Seifeddine Gmati on 2026-07-23
   > … literal kind is described in one place, added a paragraph to the introduction on where literal types fit next to **enum**s, tightened the reasoning in the matching semantics section, and added a short note on **enum** comparisons to the Performance …
13. [[RFC] [Discussion] Literal Scalar Types](https://staging.externals.io/message/131771.md) — email #131771 in thread #131771, by Jorg Sowa on 2026-07-04
   > … Inline literal types such as 1|2|3 or 'asc'|'desc' provide less semantic signal than named concepts such as **enum**s or type aliases. This can make code harder not only for humans, but also for AI tools that rely …
14. [Offset-only results from preg_match](https://staging.externals.io/message/104831.md) — email #104831 in thread #104831, by C. Scott Ananian on 2019-03-20
   > … so you only pay for the parts that you do access. Seems like this is letting the perfect be the **enem**y of the good. The LENGTH_CAPTURE significantly reduces allocation for long match strings, and it allocates the same two …
15. [Offset-only results from preg_match](https://staging.externals.io/message/104841.md) — email #104841 in thread #104841, by Nikita Popov on 2019-03-21
   > … via method calls, so you only pay for the parts that you do access. Seems like this is letting the perfect be the **enem**y of the good. The LENGTH_CAPTURE significantly reduces allocation for long match strings, and it allo
16. [[RFC] Numeric Literal Separator](https://staging.externals.io/message/105808.md) — email #105808 in thread #105714, by G. P. B. on 2019-05-30
   > … applies here". I'm really not a fan of the RFC in general. Also I think those kind of magic **num**bers should be constants with meaningful names, and it that case you could just compute them by adding powers of …
17. [[RFC] Numeric Literal Separator](https://staging.externals.io/message/105800.md) — email #105800 in thread #105714, by Theodore Brown on 2019-05-29
   > As requested at the end of April, 1 Bishop and I are resurrecting the **Num**eric Literal Separator RFC: https://wiki.php.net/rfc/**num**eric_literal_separator. If no serious issues come up, voting will start in two weeks (on …
18. [[RFC] Numeric Literal Separator](https://staging.externals.io/message/105799.md) — email #105799 in thread #105714, by Dan Ackroyd on 2019-05-29
   > Also I think those kind of magic **num**bers should be constants with meaningful names, and it that case you could just compute them by adding powers of ten. E.g. DISCOUNT_IN_CENTS = 1 * 10^5 + 3 * 10^4 …
19. [[RFC] Numeric Literal Separator](https://staging.externals.io/message/105798.md) — email #105798 in thread #105714, by Theodore Brown on 2019-05-29
   > … there are already problems like this with choice of names for variables and code style and such, but until now **num**bers were a safe place that always looks the same. **Num**bers don't always look the same, though. They can …
20. [[RFC] Numeric Literal Separator](https://staging.externals.io/message/105797.md) — email #105797 in thread #105714, by Theodore Brown on 2019-05-29
   > … applies here". I'm really not a fan of the RFC in general. Also I think those kind of magic **num**bers should be constants with meaningful names, and it that case you could just compute them by adding powers of …

Next page: https://staging.externals.io/search.md?q=enum&page=2
