Skip to content
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

Let users use or discard explicit types #744

Merged

Conversation

xgouchet
Copy link
Contributor

Using the as type syntax for parameters and return type on function seems to have a performance impact on Roku channels.

image (2)

This PR adds a useExplicitType configuration option to let the Brighterscript transpiler omit those to generate code that will be more efficient.

@TwitchBronBron
Copy link
Member

Thanks for this! Can you rename the property to removeParameterTypes instead?

@xgouchet
Copy link
Contributor Author

Thanks for this! Can you rename the property to removeParameterTypes instead?

Yes, and I had to invert the default value so that it didn't change the legacy behavior

@TwitchBronBron TwitchBronBron merged commit 28d41fb into rokucommunity:master Dec 2, 2022
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.

2 participants