Why Nostr? What is Njump?
2024-10-28 13:44:11

Anthony Accioly on Nostr: "Small" things I highly appreciate about Kotlin coming from Java - Chapter 2 ...

"Small" things I highly appreciate about Kotlin coming from Java - Chapter 2

š—¦š˜š—暝—¶š—»š—“ š—§š—²š—ŗš—½š—¹š—®š˜š—²š˜€

šš’šš–šš™šš˜šš›ššā€‚šš“ššŠššŸššŠ.šššš’šš–ššŽ.š™»šš˜ššŒššŠšš•š™³ššŠššššŽ

ššššžšš—ā€‚šš–ššŠšš’šš—()ā€‚{
ā€‚ā€‚ā€‚ā€‚ššŸššŠšš•ā€‚šš—ššŠšš–ššŽā€‚=ā€‚"š™¹šš˜šš‘šš—ā€‚š™³šš˜ššŽ"
ā€‚ā€‚ā€‚ā€‚ššŸššŠšš•ā€‚šššš˜ššššŠšš¢ā€‚=ā€‚š™»šš˜ššŒššŠšš•š™³ššŠššššŽ.šš—šš˜šš ()
ā€‚ā€‚ā€‚ā€‚šš™šš›šš’šš—šššš•šš—("š™·ššŽšš•šš•šš˜,ā€‚$šš—ššŠšš–ššŽ!ā€‚ššƒšš˜ššššŠšš¢ā€‚šš’ššœā€‚${šššš˜ššššŠšš¢.ššššŠšš¢š™¾šššš†ššŽššŽšš”}.")
}

https://kotlinlang.org/docs/strings.html#string-templates

No more overusing šš‚šššš›šš’šš—šš.šššš˜šš›šš–ššŠšš parameters. No more clunky š™¼ššŽššœššœššŠššššŽš™µšš˜šš›šš–ššŠšš.šššš˜šš›šš–ššŠšš. It just works.

#Kotlin #Java #JVM #String #StringInterpolation #StringTemplates #SoftwareDevelopment
Author Public Key
npub1a6we08n7zsv2na689whc9hykpq4q6sj3kaauk9c2dm8vj0adlajq7w0tyc