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

depends on, transitive dependency 에 대한 번역 #330

Open
dakeshi opened this issue Apr 23, 2018 · 0 comments
Open

depends on, transitive dependency 에 대한 번역 #330

dakeshi opened this issue Apr 23, 2018 · 0 comments
Labels
review discussion 리뷰과정에서 주고받은 의견들

Comments

@dakeshi
Copy link
Contributor

dakeshi commented Apr 23, 2018

Package initialization 챕터에 언급된 dependency, transitive dependency 와 depend on 에 관한 번역 제안과 참고 자료입니다.

go lang에서의 dependency

go lang 에서는 dependency(depend on 포함) 라는 용어는 패키지 레벨의 변수(package-level variables) 초기화와 package import와 관련된 내용에서 사용되고 있습니다.

var (
	a = c + b
	b = f()
	c = f()
	d = 3
)

func f() int {
	d++
	return d
}

위의 예제에서 변수 b 의 초기화 식에서 f() 를 참조하고 있고, f()의 본문에서 변수 d를 참조하고 있으므로, b depends on d 라고 표현할 수 있습니다. depend on 과 관련된 번역문으로는

  • b는 d에 의존한다
  • b는 d에 의해 결정된다

등이 제안되었으며, 대부분의 프로그래밍 언어에서 dependency가 의존성으로 번역하기 때문에 depend on 에 대한 번역 역시 b는 d에 의존한다가 가장 적합할 것 같습니다.

transitive dependency

전이적 의존성과 관련해서는 dep 프로젝트 용어집에서 자세한 설명이 있네요.

https://golang.github.io/dep/docs/glossary.html#transitive-dependency

A project's transitive dependencies are those dependencies that it does not import itself, but are imported by one of its dependencies. If each letter in A -> B -> C -> D represents a distinct project containing only a single package, and -> indicates an import statement, then C and D are A's transitive dependencies, whereas B is a direct dependency of A.

@dakeshi dakeshi added the review discussion 리뷰과정에서 주고받은 의견들 label Apr 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review discussion 리뷰과정에서 주고받은 의견들
Projects
None yet
Development

No branches or pull requests

1 participant