Search code examples
kotlinnaming

What is the preferred file naming convention in Kotlin for a utility collection?


As being new to Kotlin, I'm not sure what the right name would be for a file like the following:

package de.company.carbase

import de.company.carbase.model.Car

typealias CarSupplier = () -> Car

I named it to cars-utils.kt. Only lower case and intentionally with a hyphen to distinguish it from regular class files.

This seems okay for me, but maybe there is an established convention I missed?


Solution

  • No doubt the correct answer should be: CarDeclarations.kt, as Tenfour04 remarked above.