awesome-repositories.com
Blog
MCP
awesome-repositories.com

Entdecke die besten Open-Source-Repositories mit KI-gestützter Suche.

EntdeckenKuratierte SuchenOpen-Source-AlternativenSelf-hosted SoftwareBlogSitemap
ProjektÜber unsRanking-MethodikPresseMCP-Server
RechtlichesDatenschutzAGB
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
tc39 avatar

tc39/proposal-optional-chainingArchived

0
View on GitHub↗
4,913 Stars·70 Forks·HTML·4 Aufrufetc39.github.io/proposal-optional-chaining↗

Proposal Optional Chaining

Dieses Projekt ist ein ECMAScript-Sprachvorschlag und eine JavaScript-Syntaxerweiterung, die darauf ausgelegt ist, den Zugriff auf verschachtelte Eigenschaften zu vereinfachen. Als TC39 Stage 4-Vorschlag bietet es einen finalisierten Standard für das Hinzufügen von Optional Chaining zur JavaScript-Sprache.

Die Erweiterung verhindert Laufzeitfehler beim Lesen von Eigenschaften von null- oder undefined-Referenzen. Dies ermöglicht das sichere Abrufen von Werten aus tiefen Objektketten und die Ausführung von Funktionen innerhalb einer Sequenz, ohne jede Ebene der Hierarchie manuell verifizieren zu müssen.

Der Vorschlag deckt Datenzugriffsfunktionen ab, einschließlich der Möglichkeit, tief verschachtelte Eigenschaften zu lesen, Funktionen optional aufzurufen und optionale Eigenschaften zu löschen. Diese Funktionen erleichtern die Navigation in JavaScript-Objekten und die Fehlervermeidung beim Umgang mit komplexen Datenstrukturen.

Features

  • Safe Nested Property Access - Provides a concise syntax for reading deeply nested properties while returning null if any reference in the chain is missing.
  • Optional - Enables removing specific properties from an object without triggering errors if the parent object is missing.
  • Runtime Reference Validations - Ensures a base object exists at runtime before attempting to access nested properties or call functions.
  • ECMAScript Proposal Implementations - Serves as a formal ECMAScript specification and implementation for adding optional chaining to the language.
  • ECMAScript Syntax Extensions - Adds a new syntactic construct to the ECMAScript specification to prevent errors when reading null or undefined references.
  • Null Reference Error Preventions - Prevents runtime crashes when attempting to call functions or access properties on null or undefined variables.
  • Property Access Syntax - Introduces a new property access syntax that allows safe retrieval of values from deep object chains.
  • Optional Function Calls - Allows executing functions within a sequence while safely returning null if the target function does not exist.
  • Safe Object Navigation - Enables accessing deeply nested properties in JavaScript objects without manual existence checks for every level.
  • Short-Circuit Operators - Implements short-circuit evaluation that stops property access chains immediately upon encountering a null or undefined value.
  • Nullish Short-Circuiting - Provides short-circuiting logic that halts the chain and returns the current value when a null or undefined reference is encountered.
  • Operator Token Translations - Implements the translation of optional chaining operators into conditional branching logic during compilation.
  • Conditional Access Simplifications - Replaces verbose conditional checks with a concise syntax when retrieving values from nested hierarchies.
  • Stage 4 Standardized Implementations - Provides a finalized Stage 4 standard for optional chaining, ready for implementation across all JavaScript engines.
  • Sentinel Value Propagation - Propagates a sentinel undefined value upward when an optional chain fails to resolve a reference.

Star-Verlauf

Star-Verlauf für tc39/proposal-optional-chainingStar-Verlauf für tc39/proposal-optional-chaining

KI-Suche

Entdecke weitere awesome Repositories

Beschreibe in einfachen Worten, was du brauchst — die KI bewertet tausende kuratierte Open-Source-Projekte nach Relevanz.

Start searching with AI

Open-Source-Alternativen zu Proposal Optional Chaining

Ähnliche Open-Source-Projekte, sortiert nach der Anzahl der gemeinsamen Funktionen mit Proposal Optional Chaining.
  • tc39/proposal-pipeline-operatorAvatar von tc39

    tc39/proposal-pipeline-operator

    7,897Auf GitHub ansehen↗

    This is an ECMAScript proposal that introduces a pipeline operator for JavaScript, enabling left-to-right expression chaining with a dedicated placeholder token to reference the previous step's value. The proposal defines a syntax-only transformation that desugars to standard JavaScript, requiring no new runtime support or engine primitives. The pipeline operator allows chaining operations sequentially, passing each result to the next step in natural reading order. It includes a null-safe variant that short-circuits on nullish values, returning them unchanged and skipping remaining steps. Eac

    HTMLjavascriptoperatorpipeline
    Auf GitHub ansehen↗7,897
  • wren-lang/wrenAvatar von wren-lang

    wren-lang/wren

    8,043Auf GitHub ansehen↗

    Wren is an embeddable, class-based scripting language and bytecode interpreter. It provides a dependency-free virtual machine designed for integrating dynamic script execution into host applications via a C API. The language is centered on a modern object-oriented model featuring inheritance, method overloading, and first-class functions. It utilizes a concurrent fiber runtime to manage lightweight, cooperatively scheduled execution paths without relying on operating system threads. The project includes a comprehensive suite of object-oriented primitives, closure-based state capture, and a m

    Wrenbytecodecfibers
    Auf GitHub ansehen↗8,043
  • rse/es6-featuresAvatar von rse

    rse/es6-features

    6,163Auf GitHub ansehen↗

    This project is a reference catalogue of the new syntax and behavioral changes introduced in the ECMAScript 6 (ES6) specification for JavaScript. It serves as a curated overview and comparison table of the language features defined by the standard, documenting additions such as block scoping with let and const, arrow function syntax, default parameter handling, and rest parameter collection. The reference is structured as a side-by-side comparison chart that maps old and new JavaScript syntax patterns, providing a focused guide for each capability. It covers the core language fundamentals

    HTML
    Auf GitHub ansehen↗6,163
  • gopl-zh/gopl-zh.github.comAvatar von gopl-zh

    gopl-zh/gopl-zh.github.com

    4,958Auf GitHub ansehen↗

    This project is a Chinese translation of a comprehensive guide to the Go programming language. It serves as a localized educational resource and technical manual designed to provide guidance on language syntax, design, and software development. The resource covers a broad range of Go language education, including the implementation of programming patterns and system design. It includes translated lessons and examples that focus on core language features such as concurrency and the use of interfaces. The content spans various capability areas, including language fundamentals, data modeling, r

    Goprogramming-language
    Auf GitHub ansehen↗4,958
Alle 16 Alternativen zu Proposal Optional Chaining anzeigen→

Häufig gestellte Fragen

Was macht tc39/proposal-optional-chaining?

Dieses Projekt ist ein ECMAScript-Sprachvorschlag und eine JavaScript-Syntaxerweiterung, die darauf ausgelegt ist, den Zugriff auf verschachtelte Eigenschaften zu vereinfachen. Als TC39 Stage 4-Vorschlag bietet es einen finalisierten Standard für das Hinzufügen von Optional Chaining zur JavaScript-Sprache.

Was sind die Hauptfunktionen von tc39/proposal-optional-chaining?

Die Hauptfunktionen von tc39/proposal-optional-chaining sind: Safe Nested Property Access, Optional, Runtime Reference Validations, ECMAScript Proposal Implementations, ECMAScript Syntax Extensions, Null Reference Error Preventions, Property Access Syntax, Optional Function Calls.

Welche Open-Source-Alternativen gibt es zu tc39/proposal-optional-chaining?

Open-Source-Alternativen zu tc39/proposal-optional-chaining sind unter anderem: tc39/proposal-pipeline-operator — This is an ECMAScript proposal that introduces a pipeline operator for JavaScript, enabling left-to-right expression… wren-lang/wren — Wren is an embeddable, class-based scripting language and bytecode interpreter. It provides a dependency-free virtual… rse/es6-features — This project is a reference catalogue of the new syntax and behavioral changes introduced in the ECMAScript 6 (ES6)… rockstarlang/rockstar — Rockstar is an esoteric programming language whose syntax is inspired by 1980s hard rock and heavy metal lyrics,… gopl-zh/gopl-zh.github.com — This project is a Chinese translation of a comprehensive guide to the Go programming language. It serves as a… zloirock/core-js — core-js is a comprehensive compatibility layer and standard library polyfill that implements ECMAScript proposals and…