kotlin-korea / Study-Log

스터디 로그 및 기타 자료
MIT License
62 stars 4 forks source link

[Note] 4회차 mentioned keywords #43

Closed cwdoh closed 7 years ago

cwdoh commented 7 years ago

jvm sdk version(1.8)에 따라 다르지 않을까? @Pluu

operator 관련 글 참조합시다. @cwdoh

tonyjs commented 7 years ago

interface 관련 이슈 링크

공식사이트문서 아래쪽을 보면 이렇게 기술되어 있네요.

Also note that this feature works only for Java interop; since Kotlin has proper function types, automatic conversion of functions into implementations of Kotlin interfaces is unnecessary and therefore unsupported.

cwdoh commented 7 years ago

@tonyjs 어제 이슈가 이것이었나요. 어제 정상 컨디션이 아니라서 기억이...;;;

tonyjs commented 7 years ago

@cwdoh Kotlin 으로 만든 interface 는 lambda 가 적용이 안되고

object : Listener {
   override ...

이런식으로 써야하는 반면 Java 는 labmda 가 적용이 안되는 것인가? 아니었나요??ㅜㅜ

cwdoh commented 7 years ago

@tonyjs 그랬던 것 같네요! :)

Pluu commented 7 years ago

우선 호출하는곳이 Fragment에서 activity의 메소드를 직접부르는것이라서 더 안되는 문제일듯해요