Skip to content

Commit 9f424c1

Browse files
chore: Added a new link for a blog post (#928)
1 parent 5beba0e commit 9f424c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blog/2022-10-17-closure-objects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ function Car(color) {
110110

111111
I've always found class inheritance confusing, and this way is much more readable for me. It's also quite similar to how React allows you to compose hooks, so it feels familiar.
112112

113-
Even though I haven't seen this method used in many places, it feels quite natural to me. I like how I see exactly what is passed where. It also brings an advantage in code optimization as private methods are truly private (unlike `Typescript` private methods), so the optimizer can optimize them accordingly.
113+
Even though I haven't seen this method used in many places, it feels quite natural to me. I like how I see exactly what is passed where. It also brings an advantage in code optimization as private methods are truly private (unlike Typescript private methods), which is beneficial when evaluated by [AI code review](https://www.qodo.ai/learn/code-review/ai/) tools for encapsulation and optimization.
114114

115115
One simple advantage is that you can safely use the desctructuring assignment here, as we won't run into issues with binding and prototype chain.
116116

0 commit comments

Comments
 (0)