CatchTheTornado / CatchTheTornado/askql

Implement a nullish coalescing operator

Open
#263 1 comment 1 reaction 0 assignees View on GitHub
AskScript enhancement type:operators
Dominant language
TypeScript
Stars
387
Forks
30
PR merge metrics
No merged PRs in 30d

Description

The nullish coalescing operator (??) is a logical operator that returns its right-hand side operand when its left-hand side operand is ~null or undefined~ empty, and otherwise returns its left-hand side operand.

Sample usage:
`const port = arg1 ?? 4000;`

Contributor guide

Open the contributing guide

Research direction

Start by locating the TypeScript parser, evaluator, and tests for logical operators; the issue does not name specific files or entry points. Trace how the sample `const port = arg1 ?? 4000;` is parsed and evaluated, then add coverage showing the right-hand side is used for an empty left-hand value and otherwise the left-hand value is preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.