another basic example with listeners
```
window.addEventListener('load', (e) => {
// how am I going to remove this listener?
console.log('everything loaded');
});
```
Specially on UI world, many libraries do attach tons of things at runtime,
within methods, and have no way to remove them if not believing the DOM
will take care of everything.
Timers are also less powerful
```js
setTimeout(function later() {
if (condition) {
moveOn();
} else {
setTimeout(later, 100);
}
}, 100);
```
Recursions as Allen wrote already are another example too.
Regards
On Fri, Feb 27, 2015 at 12:42 AM, Garrett Smith <[email protected]>
wrote:
> Can you show an example of how callee is used with a fat arrow function?
>
> (()=>{alert(callee);})()
>
> Thanks.
>
> On 2/26/15, Allen Wirfs-Brock <[email protected]> wrote:
> > Here is a new proposal for some additional meta properties that should be
> > considered for ES7
> > https://github.com/allenwb/ESideas/blob/master/ES7MetaProps.md
> >
> > I've added this to the agenda for next months TC39 meeting but
> pre-meeting
> > discussion is always welcomed right here.
> >
> > Allen
> >
> >
>
>
> --
> Garrett
> @xkit
> ChordCycles.com
> garretts.github.io
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss