Skip to content

add explanatory comments to _zend_op #7522

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

Closed
wants to merge 1 commit into from
Closed

Conversation

kaja47
Copy link
Contributor

@kaja47 kaja47 commented Sep 28, 2021

No description provided.

@krakjoe
Copy link
Member

krakjoe commented Sep 28, 2021

I question the explanatory powers of such comments: I'm not really for making these kinds of changes, I'd rather look at a clean typedef.

@kaja47
Copy link
Contributor Author

kaja47 commented Sep 28, 2021

Then do it, because I do not feel confident enough to make these kind of changed in the very hearth of PHP. But for me, as a some rando, PHP code is by its total lack of any meaningful documentation utterly incomprehensible and anything, literally any faint glimmer of guiding light like this saying what values a variable can take and what it means, would be greatly appreciated.

@krakjoe
Copy link
Member

krakjoe commented Sep 28, 2021

If we added these kinds of comments everywhere, we would still not have meaningful documentation, there would just be comments everywhere and it would make the actual code harder to read.

@nikic
Copy link
Member

nikic commented Sep 29, 2021

This looks fairly harmless to me. I don't think we can use typedefs here, because we need precisely controlled layout, and C does not have enum Foo : uint8_t support like in C++.

@krakjoe
Copy link
Member

krakjoe commented Sep 30, 2021

I wasn't suggesting we use typedefs, I was referring to the fact that structs and typedefs are easier to read when they are not littered with comments.

I still don't see the point in this kind of change.

@Girgias Girgias closed this in f56dc76 Jan 26, 2023
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Mar 7, 2023
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Mar 7, 2023
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Mar 14, 2023
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Apr 12, 2023
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request May 16, 2023
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Jun 16, 2023
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Jul 19, 2023
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Aug 1, 2023
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Aug 3, 2023
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Aug 3, 2023
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Aug 30, 2023
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Oct 2, 2023
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Nov 24, 2023
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Jan 17, 2024
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Jan 17, 2024
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Feb 23, 2024
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Mar 15, 2024
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Apr 15, 2024
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request May 8, 2024
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Jun 5, 2024
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Jul 3, 2024
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Jul 30, 2024
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Aug 28, 2024
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Oct 15, 2024
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Oct 30, 2024
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Nov 20, 2024
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Jan 7, 2025
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Mar 11, 2025
MaxKellermann pushed a commit to CM4all/php-src that referenced this pull request Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants