dart-lang / dart-lang/language
Null aware ternary operator
Open
feature
- Dominant language
- TeX
- Stars
- 2.9k
- Forks
- 239
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 14
Description
for example:
if(variable1 == null)
doSomthing();
else
doSomthingElse()
my suggestion for the syntax is as follows:
variable1?? doSomthing(): doSomthingElse();
I'm not entirely sure if this is already implemented.
Contributor guide
Research direction
No files, tests, or entry points are named. Start by checking the Dart language specification and current language status for existing null-aware conditional syntax; done would require a confirmed design decision and corresponding specification or implementation work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100