Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

1K
Vistas
What's the difference between .kt and .kts files in Kotlin. When should we use .kts file over .kt file?

What is the purpose of using .kts files in Kotlin? Are these files included in the app bundle when releasing the app?

enter image description here

over 4 years ago · Hanz Gallego
2 Respuestas
Responde la pregunta

0

.kt — normal source files, .kts — script files

The .kts files are those that run as script files, without a need for separate compilation. it is run using the following command:

kotlinc -script <filename>.kts

You don't need main function in a .kts file, It will be executed line by line just like a bash/python script.

over 4 years ago · Hanz Gallego Denunciar

0

.Kt and .Kts

  • They are all kotlin files that contain kotlin source code.
  • .kt file are assumed to be compiled by the kotlin compiler.
  • .Kts files are assumed to be executed by kotlin scriting support.

As Explained in kolinConf18

over 4 years ago · Hanz Gallego Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda