-
Notifications
You must be signed in to change notification settings - Fork 171
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
[RFC] Let the compiler do inlining #156
Comments
These are all good points. I don't know of any reasonable argument against them. PRs will be welcomed. @arnopo, any comments? |
Yes your proposal is certainly valid and a PR would help to estimate the impacts. |
I'm happy to separate those concerns. I've created #158 to record that |
This issue has been marked as a stale issue because it has been open (more than) 45 days with no activity. |
In several places in the code here,
#defines
are used to declare functions. Is there a rational for this?The drawbacks of this style are it:
I can't think of a rational for using this style - other than maybe you don't trust a compiler to inline - although that seems a pretty low bar.
I'm willing to submit PR(s) to address this, if desired
A related issue would be using consts in place of
#defines
for constants. The rational is similar, you gain type safety, tooling support, and simplify FFI generation.The text was updated successfully, but these errors were encountered: