A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Microsoft/TypeScript/issues/2183 below:

const/non-const enum cleanup · Issue #2183 · microsoft/TypeScript · GitHub

Key points from discussion from this morning:

  1. Assume all non-ambient members of non-const enums are computed (even those initialized with literals), both for inlining purposes and for .d.ts generation purposes
  2. Continue to aggressively compute initializer expressions in both const and non-const enums
  3. Ambient non-const enums preserve existing behavior (computed iff there is no initializer)
  4. Continue to have --preserveConstEnums flag, which causes emit of the lookup object for const enums but does not change inlining

Tag @ahejlsberg


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4