Avoid Implementing String-based Property Access (a.b) for Type Safety and Performance #165
yceffort-naver
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
|
라이브러리가 지향하는 바에 따라 결정하면 되지만 lodash의 완벽한 대체재가 아니게 될 수는 있습니다.
README.md에서 소개한 타입 안정성을 보장하기 위해서라면 제거하는 편이 좋아보입니다.
alternative / replacement 뉘앙스
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Lodash allows property access using string-based paths like
a.b.c.for example: https://lodash.com/docs/4.17.15#get
While this approach provides flexibility, it comes with significant trade-offs:
Considering these drawbacks, I propose that
@naverpay/hidashshould avoid implementing such string-based property access. Instead, we can focus on TypeScript-friendly alternatives that maintain type safety while still providing useful utility functions.What do @NaverPayDev/frontend think?
Beta Was this translation helpful? Give feedback.
All reactions