``
>
> 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
<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
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
"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
"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
>>>
{
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
ed!
>>
>> Original:
>> https://gist.github.com/brasten/f87b9bb470973dd5ee9de0760f1c81c7
>>
>> -Brasten
>>
>> —
>>
>> # Proposal: Default object method #
>>
>> Objects w/ default method can be invoked like a function.
>>
>>
> 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
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
9 matches
Mail list logo