# tc39/proposal-do-expressions

Proposal for `do` expressions

Repository: https://github.com/tc39/proposal-do-expressions
Canonical: https://ross.abutalabs.com/products/proposal-do-expressions
Language: HTML
License: MIT
License Family: permissive
Last push: 2021-04-09T09:08:50+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3277, "days_push": 1972, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1195, forks 10 (observed 2026-08-28T04:03:56.909078+00:00)

## What it is
A TC39 ECMAScript stage 1 proposal introducing `do` expressions to JavaScript, allowing statements like conditionals to be used as expressions. The repository contains the proposal documentation, motivation, examples, and preliminary specification text.

## Use cases
- write if/else as an expression instead of nested ternaries in JavaScript
- scope variables locally in an expression-oriented style
- use conditional logic inside JSX templates
- track the status of the do expressions language proposal
- understand the TC39 proposal process and spec text

## When to choose
- you want to follow or contribute to the evolution of JavaScript syntax
- you need reference material on expression-oriented JavaScript proposals
- you are evaluating future JS language features for tooling support

## When to avoid
- you need a feature you can use in production today - this is stage 1 and not standardized
- you want a library or runtime tool rather than a language specification
- you need stable, documented JavaScript behavior

## Facets
- artifact type: learning-resource
- maturity: experimental
- function: programming-language, developer-tools
- domain: programming-languages, web-development
- platform: browser, cross-platform
- tags: ecmascript-proposal, tc39, stage-1, javascript-syntax, do-expressions, specification, javascript, nodejs

## Member repositories
- tc39/proposal-do-expressions (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:56.909078+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:22:07.538368+00:00, confidence not recorded.
  - readme: https://github.com/tc39/proposal-do-expressions (fetched 2026-08-28T04:03:56.909078+00:00, sha 0cb90d3ca71b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
