Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

null is also a value type #4077

Open
nielsdos opened this issue Nov 15, 2024 · 4 comments · May be fixed by #4332
Open

null is also a value type #4077

nielsdos opened this issue Nov 15, 2024 · 4 comments · May be fixed by #4332
Labels
good first issue Good for newcomers

Comments

@nielsdos
Copy link
Member

but not listed here: https://www.php.net/manual/en/language.types.value.php

@nielsdos nielsdos added the good first issue Good for newcomers label Nov 15, 2024
@KERNAMON

This comment was marked as off-topic.

@Girgias
Copy link
Member

Girgias commented Dec 13, 2024

what none of what you said is particularly relevant to the point raised here.

@Girgias
Copy link
Member

Girgias commented Dec 13, 2024

I think I'm just not very happy to call these "value types" as I did when I rewrote the whole type section of the manual. Maybe "singleton" type is better, null fits better into that as the null type consist only of the singleton type null.
But still not sure about this whole topic.

@cmb69
Copy link
Member

cmb69 commented Dec 16, 2024

"Value type" might be confusing (see https://en.wikipedia.org/wiki/Value_type_and_reference_type). "Singleton type" might indeed be a better alternative.

@kamil-tekiela kamil-tekiela linked a pull request Dec 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants