Skip to content

noinline attribute #128

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jackdotink
Copy link
Contributor

@jackdotink jackdotink commented Jul 6, 2025

This RFC adds the @[inline("never")] attribute to replace the local func; function func() pattern to prevent inlining.

Rendered

@Bottersnike
Copy link

Given #49 strikes down the idea of a @inline is the motivation against @noinline valid? Personally I think it would make far more sense over a mandatory argument that's only ever a single value (especially given the syntax for arguments to attributes isn't the prettiest too).

@Dekkonot
Copy link
Contributor

Dekkonot commented Jul 7, 2025

I'm inclined to boost @noinline over @inline(never) for the reasons Bottersnike mentioned above. If we ever get an @inline attribute, we can add never as an option without too much trouble.

@jackdotink
Copy link
Contributor Author

I am happy with either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants