Re: Proposal: Default object method

2019-01-28 Thread Brasten Sager
`` > > From: es-discuss On Behalf Of Jordan Harband > Sent: Sunday, January 27, 2019 9:35 PM > To: Brasten Sager > Cc: es-discuss > Subject: Re: Proposal: Default object method > > Something that can be invoked has a `[[Call]]` slot, and is `typeof` > "func

Re: Proposal: Default object method

2019-01-28 Thread Brasten Sager
<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgist.github.com%2Fbrasten%2Ff87b9bb470973dd5ee9de0760f1c81c7&data=02%7C01%7Cron.buckton%40microsoft.com%7C8c644033cebc48cdb58708d684e27a3d%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636842505603533257&sdata=qHxOcUdMF1i1QPc

Re: Proposal: Default object method

2019-01-28 Thread Ranando King
gt;> >>> This seems like a pretty large change, solely to avoid "classes with a >>> single method", which arguably should just be a function in the first place. >>> >>> On Sun, Jan 27, 2019 at 4:05 PM Brasten Sager >>> wrote: >>> >>>&g

Re: Proposal: Default object method

2019-01-28 Thread J Decker
"classes with a >> single method", which arguably should just be a function in the first place. >> >> On Sun, Jan 27, 2019 at 4:05 PM Brasten Sager wrote: >> >>> Apologies if this has been raised before. I was unable to locate >>> anything simil

Re: Proposal: Default object method

2019-01-28 Thread Isiah Meadows
"classes with a >> single method", which arguably should just be a function in the first place. >> >> On Sun, Jan 27, 2019 at 4:05 PM Brasten Sager wrote: >> >>> Apologies if this has been raised before. I was unable to locate >>>

RE: Proposal: Default object method

2019-01-27 Thread Ron Buckton
{ constructor() { /* constructor behavior */ } static [Symbol.apply]() { /* call behavior */ } } ``` From: es-discuss On Behalf Of Jordan Harband Sent: Sunday, January 27, 2019 9:35 PM To: Brasten Sager Cc: es-discuss Subject: Re: Proposal: Default object method Something that can be invoked

Re: Proposal: Default object method

2019-01-27 Thread Ranando King
ed! >> >> Original: >> https://gist.github.com/brasten/f87b9bb470973dd5ee9de0760f1c81c7 >> >> -Brasten >> >> — >> >> # Proposal: Default object method # >> >> Objects w/ default method can be invoked like a function. >> >>

Re: Proposal: Default object method

2019-01-27 Thread Jordan Harband
> Original: https://gist.github.com/brasten/f87b9bb470973dd5ee9de0760f1c81c7 > > -Brasten > > — > > # Proposal: Default object method # > > Objects w/ default method can be invoked like a function. > > ## Problem ## > > Objects that are well constrained (singl

Proposal: Default object method

2019-01-27 Thread Brasten Sager
1c7> -Brasten — # Proposal: Default object method # Objects w/ default method can be invoked like a function. ## Problem ## Objects that are well constrained (single responsibility) can tend to end up with a single method, or at least a single method that is important to most consumers. These method