Skip to content

app 실행 시 argument와 함수의 이름이 겹칠 때 #74

Description

@cs71107

스칼라로 여러 가지를 테스트 해보다가, 다음과 같이

{
def f(x: Int, f: Int => Int): Int ={
x+f(3)
}

f(3, (x: Int)=>x)
}

구현해도 문제 없이 돌아가는 것을 확인하였습니다. 지금 Map으로 관리를 하기 때문에 겹쳤을 경우 문제가 생길 수 있는데, 혹시 scala 처럼 겹쳤을 경우, argument의 것을 사용하나요?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions