인자와 매개변수

3 views
Skip to first unread message

johnsonj

unread,
Jul 7, 2016, 9:09:44 AM7/7/16
to 파이썬문서고

번역서를 보니 인자를 인수로 많이 사용하는 거 같다.
다음에 토론이 있으니 참고..

https://groups.google.com/forum/#!topic/scala-korea/P2KKbN-H_-c

이 중에 옥용수님의 의견에 동의 한다.
잠시 인용..

PIS Glossary 에 argument 와 parameter 를 구분하여 정의하고 있기도 하고, 
의미도 다르므로 구분이 필요하리라 생각되어요. 

argument 

When a function is invoked, an argument is passed for each parameter
of that function. The parameter is the variable that refers to the
argument. The argument is the object passed at invocation time. In addition,
applications can take (command line) arguments that show up
in the Array[String] passed to main methods of singleton objects.    


parameter 

Functions may take zero to many parameters. Each parameter
has a name and a type. The distinction between parameters and arguments
is that arguments refer to the actual objects passed when a
function is invoked. Parameters are the variables that refer to those
passed arguments.

그래서, 저는 주로 parameter 는 매개변수로, argument 는 인자(또는 인수) 를 사용합니다.

그럼 나는 왜 인자를 사용하는가?

인자7

 단어장에 이미 추가된 단어입니다.단어장 내용 확인

명사

1 . 어떤 사물원인되는 낱낱의 요소물질.
2 . <생물> 생명 현상에서 어떤 작용원인되는 요소. 환경 인자, 영양 인자, 유전 인자 따위로 나눈다.
3 . <수학> [같은 말] 인수9()(정수 또는 정식 개의 하였을 에, 그것 구성 요소이르는 ).

딱 인자다.
씨값을 뜻하는게 바로 子이기 때문이다.
Reply all
Reply to author
Forward
0 new messages