Skip to content

Feature/nullish coalescing#866

Merged
Perryvw merged 2 commits intomasterfrom
feature/nullish-coalescing
May 9, 2020
Merged

Feature/nullish coalescing#866
Perryvw merged 2 commits intomasterfrom
feature/nullish-coalescing

Conversation

@Perryvw
Copy link
Copy Markdown
Member

@Perryvw Perryvw commented May 9, 2020

Added support for nullish coalescing. We consider two cases:

lhs can be false (according to its type), or we are not sure:

-- lhs ?? rhs -->
    (function(____lhs) if ____lhs == nil then return rhs else return ____lhs end end)(lhs)

lhs cannot be false (according to its type):

-- lhs ?? rhs --> 
    lhs or rhs

@Perryvw Perryvw merged commit 89f3413 into master May 9, 2020
@Perryvw Perryvw deleted the feature/nullish-coalescing branch May 9, 2020 13:03
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