Skip to content

Conversation

@badasahog
Copy link
Contributor

No description provided.

@badasahog badasahog requested a review from tdhock as a code owner August 7, 2025 13:03
@codecov
Copy link

codecov bot commented Aug 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.79%. Comparing base (053d905) to head (d9f3f84).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7244   +/-   ##
=======================================
  Coverage   98.79%   98.79%           
=======================================
  Files          81       81           
  Lines       15254    15254           
=======================================
  Hits        15070    15070           
  Misses        184      184           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

github-actions bot commented Aug 7, 2025

No obvious timing issues in HEAD=replace0withNULL
Comparison Plot

Generated via commit d9f3f84

Download link for the artifact containing the test results: ↓ atime-results.zip

Task Duration
R setup and installing dependencies 2 minutes and 40 seconds
Installing different package versions 39 seconds
Running and plotting the test cases 2 minutes and 27 seconds

@MichaelChirico
Copy link
Member

Could you please provide a reference for this

@badasahog
Copy link
Contributor Author

A reference for the fact that NULL is preferred over 0? I think that's common knowledge.

I'm not sure where I would look for the specific guideline that specifies this, but NULL exists for precisely this purpose.

@MichaelChirico
Copy link
Member

in that case I am uncommonly ignorant :)

@aitap
Copy link
Contributor

aitap commented Aug 7, 2025 via email

@badasahog
Copy link
Contributor Author

I'm not familiar with this document, but I do know that NULL is used elsewhere is the code.

I still affirm my belief that using NULL is a good idea, but if you're confident in this document, would you like me to update the rest of the code?

It would seem hard to believe that 0 is better than NULL, because NULL is more specific, while often evaluating to 0 anyway.

It specifies behavior and intent, while 0 only specifies behavior.

@MichaelChirico
Copy link
Member

In fact the Google Guide recommends nullptr but I understood that's more of a C++ thing:

https://google.github.io/styleguide/cppguide.html#0_and_nullptr/NULL

@badasahog
Copy link
Contributor Author

Yeah, that's not available in c99

@badasahog badasahog mentioned this pull request Sep 10, 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