Skip to content

Consider adding a ternary operator #278

@mr-zwets

Description

@mr-zwets

Solidity has it

now we would have to do

int someVar = 5;
if(condition){
  someVar = 6;
}

or

int someVar = 5;
if(condition) someVar = 6;

instead of

int someVar = condition ? 6 : 5;

Metadata

Metadata

Assignees

No one assigned

    Labels

    cashc-compilerRelates to the cashc compilerenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions