Skip to content

Optional chaining#546

Merged
TwitchBronBron merged 19 commits intomasterfrom
optional-chaining
Apr 12, 2022
Merged

Optional chaining#546
TwitchBronBron merged 19 commits intomasterfrom
optional-chaining

Conversation

@TwitchBronBron
Copy link
Member

@TwitchBronBron TwitchBronBron commented Mar 23, 2022

Adds syntax support for optional chaining. Since the brightscript runtime supports this natively in Roku OS 11, there's no need for any special transpile logic at this time. However, there are significant dangers of crashing in the native implementation, so I think we will still add a transpile step in the future to make this feature more useful.

This PR is just to support the syntax from a parser level.

@TwitchBronBron TwitchBronBron requested a review from chrisdp April 1, 2022 19:25
@TwitchBronBron TwitchBronBron merged commit 4c0658f into master Apr 12, 2022
@TwitchBronBron TwitchBronBron deleted the optional-chaining branch April 12, 2022 15:09
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