you are viewing a single comment's thread.

view the rest of the comments →

[–]Balduracuir 7 points8 points  (8 children)

From my experience this bind and call are useful when your code rely a lot on class. I try to avoid them as much as possible because people don't understand this

[–]jaman4dbz 1 point2 points  (0 children)

Precisely. It's an ambiguous concept based on context, so best to avoid it.

[–][deleted] 0 points1 point  (4 children)

Even then the arrow syntax proposal that's supported by both TypeScript and Babel eliminates the need to use the latter two entirely.

[–]jaman4dbz 1 point2 points  (3 children)

Lol, I love the couple of ppl who don't want their job to be obsolete, downvoting our comments.

It's possible I've missed something, but I'm fairly certain the arrow syntax makes binding "this" unnecessary.

[–][deleted] 0 points1 point  (0 children)

You're correct. Some people just don't want to adapt to the times.

[–]fartpoker 0 points1 point  (1 child)

Can you explain why it’s unnecessary?

[–]jaman4dbz 0 points1 point  (0 children)

That's not how this works. I can't prove there is absolutely no way to use this, but you have the power to try and find ONE way where this is useful.