I need to build a heavy duty API REST and was searching for a very fast programming language.
Something like java, Typed OOP language, don’t like C# because i don’t like M$crosoft policy and we use Linux and postgres extensive in the business.
On the search found Kotlin is more modern and blessed by android.
Read the basic, some videos and want to try it, lets try some easy task first i say, to test this beautiful “not so new” language.
The task: Read a text file line by line.
My surprise was incredible that every tutorial on internet say
can’t understand, why import java for “inter-op” for an almost “trivial” job so i check the docs, can’t get info about so came here to ask to try to understand why kotlin don’t have something like kotlin.io.File
Can you guide me please?
Path, so it looks promising, although I never used it myself.
But generally, if you don’t plan to run your REST server on an iPhone ;-), then you can safely assume your service is a JVM service, so there is nothing wrong in using Java stdlib as tutorials suggested.
kotlinx-*. As a matter of fact, there was such library for I/O, but it has been abandoned: GitHub - Kotlin/kotlinx-io: Kotlin multiplatform I/O library