Join Slack
Powered by
why in Java I can write @Api(tags = "Auth") but in...
# announcements
r
rrader
07/24/2017, 8:06 AM
why in Java I can write @Api(tags = "Auth") but in Kotlin I must write @Api(tags = arrayOf("Auth"))
v
voddan
07/24/2017, 8:07 AM
Kotlin 1..2 has
@Api(tags = ["Auth"])
, cheer up
r
rrader
07/24/2017, 9:20 AM
why not to do the same like in Java?
e
elizarov
07/24/2017, 9:37 AM
Kotlin’s spirit is to be explicit and to avoid implicit conversions. Passing a string where an array is expected is too implicit for Kotlin’s taste
p
peasee
07/25/2017, 9:01 AM
@voddan
could you do this with
@Component( java classes)
❓ 1
2
Views
Open in Slack
Previous
Next