Mustafa Ozhan
03/21/2023, 3:07 PMresourceProvider.kt
or viewExt.kt
.
Is it an official convention? I couldn’t find anything in Coding Conventions about itJoffrey
03/21/2023, 3:09 PMIf a Kotlin file contains a single class or interface (potentially with related top-level declarations), its name should be the same as the name of the class, with the .kt extension appended. It applies to all types of classes and interfaces. If a file contains multiple classes, or only top-level declarations, choose a name describing what the file contains, and name the file accordingly. Use upper camel case with an uppercase first letter (also known as Pascal case), for example, ProcessDeclarations.kt.That said, I have seen both lowerCamelCase and UpperCamelCase (depending on projects) for files that contain more than just one type declaration.
LeoColman
03/21/2023, 3:11 PMMustafa Ozhan
03/21/2023, 3:15 PMLeoColman
03/21/2023, 3:17 PMUse upper camel case with an uppercase first letter (also known as Pascal case), for example, ProcessDeclarations.kt.I interpret this as lowerCamelCase being forbidden
Joffrey
03/21/2023, 3:17 PMLeoColman
03/21/2023, 3:17 PMMustafa Ozhan
03/21/2023, 3:17 PMLeoColman
03/21/2023, 3:18 PMMustafa Ozhan
03/21/2023, 3:21 PMephemient
03/21/2023, 6:54 PMnapperley
03/21/2023, 11:00 PMephemient
03/21/2023, 11:35 PMnapperley
03/22/2023, 1:36 AMJan
04/12/2023, 9:37 PM