From 278995d53dd6b64bfde7335f561b4c15bace0cd9 Mon Sep 17 00:00:00 2001 From: Hamza Muric Date: Mon, 25 Mar 2019 15:48:56 +0100 Subject: [PATCH] Add kotlin script (#26349) Added kotlin script command for running kotlin without compiling. --- guide/english/kotlin/index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/guide/english/kotlin/index.md b/guide/english/kotlin/index.md index df735e11d52..bc11a45231a 100644 --- a/guide/english/kotlin/index.md +++ b/guide/english/kotlin/index.md @@ -167,6 +167,11 @@ Hello, World! ``` Congratulations you have successfully set up the Kotlin compiler and development environment on your system. We will cover all of the intricacies and fun parts of Kotlin in this guide, but you can get a headstart if you want by going to the Try Kotlin website and going through the exercises there. +### Kotlin scripts + +Yout can also put Kotlin code in file with extension .kts without main function and run it as a script. +```$ kotlinc -script hello.kts``` + ## Documentation One of the greatest things about Kotlin is its comprehensive and well-structured documentation. Even if you are new to programming, you will find yourself right at home with the docs. They do a pretty amazing job at laying it all out in a well-structured manner. You can check out the official documentation at this link.