Skip to content

Suggestion Backlog Slog, 10/11/2021 #46314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
andrewbranch opened this issue Oct 11, 2021 · 0 comments
Closed

Suggestion Backlog Slog, 10/11/2021 #46314

andrewbranch opened this issue Oct 11, 2021 · 0 comments
Labels
Design Notes Notes from our design meetings

Comments

@andrewbranch
Copy link
Member

andrewbranch commented Oct 11, 2021

(Notes by @DanielRosenwasser)

  • allow voluntary .ts suffix for import paths #37582

    • Basically Deno requires this.

    • What are the other implications here? Does node12 + this mode allow you to use Deno.

    • Bit of a trap if we do this not-carefully.

    • Could imagine with noEmit (otherwise, have to emit .ts files).

    • Curious to see how the various bundlers react when you say .js when you're really going to hit .ts.

    • Multiple use-cases for wanting to write .ts - but don't like the idea of adding one piece of the full story which doesn't really address the true scenario.

    • Also, at least half of users are asking for importing .ts files and having us rewrite the extension.

    • Next steps: try to understand how significant the demand is for Deno support in tsc and what it would require from us to do

  • Optional chaining of unknown should be unknown #37700

    • Shouldn't you also be able to do this on object and {}?

    • How far do you go? unknown + unknown is unknown too.

    • a?.toStirng would be valid - no way to catch this because it's "technically correct". Allows inconsistent accesses.

      if (a?.foo) {
          a?.boo.yadda(); // oops
      }
    • Not in the business of creating new anys.

    • Action: close issue

@andrewbranch andrewbranch added the Design Notes Notes from our design meetings label Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Design Notes Notes from our design meetings
Projects
None yet
Development

No branches or pull requests

2 participants