Skip to content

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.

@jackdotink
Copy link
Contributor Author

This is a simple RFC. There has been no discussion beyond @noinline vs @[inline("never")], and I am happy with both options, whichever would get this merged.

Is this is a feature that the Luau maintainers want?

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