# RFC: Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON

- Status: Declined
- Authors: George Peter Banyard girgias@php.net, Kalle Sommer Nielsen kalle@php.net
- Date: 2020-04-11
- Version: 0.1.0
- Original: https://wiki.php.net/rfc/rename-double-colon-token
- Page: https://externals.io/rfc/rename-double-colon-token
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

## Votes

### Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON? (closed)

Yes: 44 · No: 30

Voters: ajf (No), alcaeus (Yes), alec (Yes), andi (No), as (Yes), asgrim (Yes), ashnazg (Yes), beberlei (No), bmajdak (No), brzuchal (Yes), bwoebi (No), carusogabriel (No), cschneid (Yes), danack (Yes), daverandom (Yes), davey (No), derick (No), dmitry (No), dragoonis (Yes), duodraco (No), ekin (Yes), galvao (Yes), geekcom (Yes), girgias (Yes), guilhermeblanco (Yes), heiglandreas (No), ilutov (Yes), irker (No), jasny (Yes), jbnahan (Yes), kalle (Yes), kaplan (No), kelunik (Yes), klaussilveira (Yes), kocsismate (Yes), krakjoe (No), laruence (Yes), levim (Yes), lstrojny (No), marandall (Yes), marcio (Yes), mariano (Yes), mbeccati (No), mcmic (No), mfonda (No), nicolasgrekas (No), nikic (Yes), ocramius (Yes), patrickallaert (No), peehaa (Yes), pmjones (Yes), ralphschindler (No), ramsey (Yes), rasmus (No), remi (No), reywob (No), royopa (Yes), salathe (No), sebastian (Yes), sergey (Yes), stas (No), subjective (Yes), svpernova09 (Yes), tandre (Yes), theodorejb (Yes), thijs (Yes), thorstenr (Yes), till (Yes), trowski (Yes), villfa (Yes), wyrihaximus (No), yunosh (No), zeev (No), zimt (No)

## Discussions on the mailing list

- [\[RFC\] Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON](https://externals.io/message/110462.md) — started on 2020-06-10, 20 messages
- [\[RFC\]\[VOTE\] Rename T_PAAMAYIM_NEKUDOTAYIM to T_DOUBLE_COLON](https://externals.io/message/110728.md) — started on 2020-06-25, 12 messages

---

## Introduction

The `T_PAAMAYIM_NEKUDOTAYIM` token representing the `::` characters sequence is often a source of confusion the first time it is encountered.

## Historical significance

The `T_PAAMAYIM_NEKUDOTAYIM` token first appeared in version 0.5 of the Zend Engine, which powered PHP 3, and which was developed in Israel.

This continues to remind us of the major contribution the Israeli community has brought to PHP by laying its modern foundation.

This information is available on the [Scope Resolution Operator](https://www.php.net/manual/en/language.oop5.paamayim-nekudotayim.php)\[1\] page.

## Newcomer experience

Seeing a really cryptic message during a parse error can lead to frustrations as it's not obvious what is wrong. Although it is true that a simple online search will usually grant an explanation of what the issue is.

However, PHP is for most people their first programming language and therefore may not have the instinct to do an online search and will end up frustrated.

## Why fix it now?

We believe that PHP is still an active and growing language and that improving the newcomer experience is something we should strive for.

## Proposal

Rename the `T_PAAMAYIM_NEKUDOTAYIM` token to its alias `T_DOUBLE_COLON`.
And make `T_PAAMAYIM_NEKUDOTAYIM` an alias to `T_DOUBLE_COLON`.

## Backward Incompatible Changes

None, as `T_PAAMAYIM_NEKUDOTAYIM` will become an alias to `T_DOUBLE_COLON`.

## Proposed PHP Version

PHP 8.0.

## Future Scope

Starting with PHP 8.0, it is possible to deprecate global constants within the engine \[2\], therefore we might consider deprecating the `T_PAAMAYIM_NEKUDOTAYIM` constant in a future version.

## Vote

Yes/No with 2/3 majority.

Voting started 2020-06-25 and ends 2020-07-09.

**Vote: Rename T\_PAAMAYIM\_NEKUDOTAYIM to T\_DOUBLE\_COLON?** — Yes: 44 · No: 30 (closed)

## Patches and Tests

<https://gist.github.com/KalleZ/e5be75fa515db625200df955d5d814b8>

## References

\[1\] <https://www.php.net/manual/en/language.oop5.paamayim-nekudotayim.php> 
\[2\] <https://github.com/php/php-src/commit/9ec1ee5976f4c0131943cc8863a344caf5492773>
