proposals icon indicating copy to clipboard operation
proposals copied to clipboard

Sept 2017

Open hzoo opened this issue 6 years ago • 24 comments

Bocoup, Boston, MA (Sept 26-28) https://github.com/tc39/agendas/blob/master/2017/09.md

Checkbox means we completed it (some Stage 1 we may want to wait to start given instability of the proposal) https://tc39.github.io/process-document/ for a primer what each Stage means

New Proposals

Moving Foward

Needs Consensus (Stage 4)

Needs Spec Work

Other (Builtins, etc)

hzoo avatar Sep 13 '17 14:09 hzoo

Pipeline operator to Stage 1: https://github.com/tc39/proposal-pipeline-operator

a |> b |> c

// - - -
c(b(a))

https://twitter.com/left_pad/status/912704437893976066

jridgewell avatar Sep 26 '17 15:09 jridgewell

Extensible literals to Stage 1: https://github.com/littledan/proposal-extensible-numeric-literals

1236536253453n		BigInt (special case)
4525i			Imaginary numbers
235435.461m		IEEE 754-2008 64-bit decimal
300px			CSS Typed OM

hzoo avatar Sep 26 '17 16:09 hzoo

@mathiasbynens: I don't think there's anything for us to implement with those. 😉

jridgewell avatar Sep 26 '17 18:09 jridgewell

@jridgewell Given the feedback during the meeting, I’d say the same goes for the extensible literals proposal and (to a lesser extent) the pipeline operator.

mathiasbynens avatar Sep 26 '17 18:09 mathiasbynens

Could at least get the syntax in for pipeline, would be interesting trying to do multiple transforms via options (and could test in the REPL for people, assuming we get those options in)

hzoo avatar Sep 26 '17 18:09 hzoo

What I mean is the Intl changes are purely runtime. We'd need to implement the parsing and syntax for literals and pipeline.

jridgewell avatar Sep 26 '17 18:09 jridgewell

First Class Protocols to stage 1: https://github.com/michaelficarra/proposal-first-class-protocols

protocol ProtocolName {
  // declare a symbol which must be implemented
  thisMustBeImplemented;

  // and some methods that you get for free by implementing this protocol
  youGetThisMethodForFree(...parameters) {
      methodBody;
  }
}

class ClassName implements ProtocolName {
  [ProtocolName.thisMustBeImplemented]() {
    // this is the implementation for this class
  }
}

let instance = new ClassName;
instance[ProtocolName.youGetThisMethodForFree]();

jridgewell avatar Sep 26 '17 18:09 jridgewell

@jridgewell Sweet.js implementation with pretty comprehensive test suite located here: https://github.com/disnet/sweet-interfaces

Polyfill implementing the Protocol constructor here: https://github.com/michaelficarra/proposal-first-class-protocols-polyfill. It's correct, but will only work in newer engines and sticks itself on the global for you. PRs to make it good would be very welcome.

michaelficarra avatar Sep 26 '17 19:09 michaelficarra

https://github.com/tc39/ecma262/pull/984

Early errors for RegExp literals: /a{5,3}/, /[z-a]/

Would this have been covered with test262 tests anyway?

hzoo avatar Sep 26 '17 19:09 hzoo

export-ns-from: export * as ns from 'mod' - https://github.com/babel/proposals/issues/16

to Stage 4 (needs consensus)

hzoo avatar Sep 26 '17 20:09 hzoo

Subsume JSON to stage 1:

http://babeljs.io/repl#?babili=false&browsers=ie%2010&build=&builtIns=true&code_lz=ESCgJgoZEoCYg&debug=false&circleciRepo=&evaluate=true&lineWrap=true&presets=es2015-loose%2Creact%2Cstage-3&prettier=false&targets=&version=7.0.0-alpha.19

jridgewell avatar Sep 27 '17 14:09 jridgewell

Throw expressions to stage 2: https://github.com/tc39/proposal-throw-expressions

a || throw new Error('test');

jridgewell avatar Sep 27 '17 16:09 jridgewell

Optional Chaining remains at Stage 1 😢.

Still need to update to remove super?.prop and a?.b = 1.

jridgewell avatar Sep 27 '17 18:09 jridgewell

Private methods and accessors to stage 3: https://github.com/tc39/proposal-private-methods Note: static privates footgun

https://twitter.com/littledan/status/913224214760566784

jridgewell avatar Sep 27 '17 20:09 jridgewell

Nullary Coalescing from Stage 0 to Stage 1 https://github.com/babel/proposals/issues/14

a ?? b

// concerns about cross-cutting concerns with ?. syntax

hzoo avatar Sep 28 '17 15:09 hzoo

Partial application to Stage 1: https://github.com/rbuckton/proposal-partial-application

jridgewell avatar Sep 28 '17 17:09 jridgewell

@jridgewell With strong objections to the syntax that is currently associated with the proposal.

michaelficarra avatar Sep 28 '17 17:09 michaelficarra

For partial application, please note that there is a not-insignificant number of members that believe that the proposal will not be able to be made viable.

ljharb avatar Sep 28 '17 17:09 ljharb

import.meta to Stage 3

hzoo avatar Sep 28 '17 18:09 hzoo

Note that extensible numeric literals had significant objections to syntax and semantics as well.

littledan avatar Sep 30 '17 14:09 littledan

Hi everyone, could you please elaborate a bit more what is happening with partial application proposal?

I would love to see it moving forward but based on your comments, I guess it is not gonna be an easy process.

Thanks.

mgtitimoli avatar Sep 30 '17 14:09 mgtitimoli

You can check the individual issues @mgtitimoli https://github.com/babel/proposals/issues/32 - and the notes will be posted in a few weeks

hzoo avatar Sep 30 '17 14:09 hzoo

Array.prototype.flatten has been changed to Array.prototype.flat per https://github.com/tc39/proposal-flatMap and is now a stage 3 per https://github.com/tc39/proposals .

brettz9 avatar Jun 20 '18 00:06 brettz9