네 종류 method reference는 receiver 위치로 구분한다
점 두 개 문법만 보고 읽으면 첫 인수가 receiver가 되는 unbound reference를 놓칠 수 있습니다.
| 형태 | reference | 호출 의미 |
|---|---|---|
| static | Type::staticMethod | method(args) |
| bound instance | obj::method | obj.method(args) |
| unbound instance | Type::method | first.method(rest) |
| constructor | Type::new | new Type(args) |
핵심: 대상 SAM의 인수 배열과 실제 호출식을 함께 펼칩니다.