Skip to content

Make "else" clause optional in if/else statements (#2002)#2933

Closed
nfogh wants to merge 1 commit intocasey:masterfrom
nfogh:make_else_block_optional_in_conditional
Closed

Make "else" clause optional in if/else statements (#2002)#2933
nfogh wants to merge 1 commit intocasey:masterfrom
nfogh:make_else_block_optional_in_conditional

Conversation

@nfogh
Copy link
Copy Markdown

@nfogh nfogh commented Oct 27, 2025

Essentially does what you suggested in #2002

@casey
Copy link
Copy Markdown
Owner

casey commented Apr 3, 2026

I'm hesitant to merge at the moment. The empty string is the current preferred "false" value, but long-term, it's not what we want. Long term, I want to make all variables in just lists of strings, and use the empty list as the false value. This may wind up being a breaking change for places which can produce false values, so I'm hesitant to add more places which can produce false values.

@casey casey closed this Apr 3, 2026
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