Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decode-base64-encoded-vals #83

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

jungwookim
Copy link
Contributor

@jungwookim jungwookim commented Dec 19, 2022

  • defresolver2에서 option으로 :decode-base64-encoded-vals 옵션을 추가했습니다.
  • 기본값은 false입니다

Copy link

@devgrapher devgrapher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오 multimethod 군요 👍

src/gosura/helpers/relay.clj Outdated Show resolved Hide resolved
src/gosura/helpers/relay.clj Outdated Show resolved Hide resolved
src/gosura/helpers/relay.clj Outdated Show resolved Hide resolved
@jungwookim
Copy link
Contributor Author

@namenu 전부 다 반영해보았습니다!

Copy link
Member

@namenu namenu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

지금도 충분하지만 사실 하고 싶은 얘기가 더 있었습니다!

multimethod 구현이 구체적인 타입에 의존하고 있는데, 그러다보면 사실 모든 경우를 커버하기가 근본적으로 불가능하여 놓치는 구현이 발생합니다. (예를 들어 set 이나 PersistentQueue 같은 자료구조가 들어올 수 있다거나)

인터페이스나 프로토콜에 따라 동작을 구현하면 이 빈틈이 메꾸어지는데요.

IMG_1662

먼저 associative?로 reduce-kv 를 적용할 녀석을 거르고,
coll? 로 판단하여 시퀀스로 처리할 녀석을 거르고,
나머지(스칼라) 값들 중에서 문자열인 녀석을 거르면 좋지 않을까 합니다.

@jungwookim
Copy link
Contributor Author

@namenu 좋은 자료네요! 감사드립니다. 언급하신 것 기반으로 재구현해보도록 하겠습니다! 지훈님의 원래 구현과 유사한 방향이군요.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants