https://kotlinlang.org logo
Title
h

Hamza

10/15/2018, 2:28 PM
When you create a java class (with IDEA), and provide the name
com.ab.cd.ef
.) it creates the package
<http://com.ab.cd|com.ab.cd>
and puts the class
ef
inside it. Doing the same with Kotlin, it creates a file called
com.ab.cd.ef
. Whyyyy 😞
1
t

Tsvetozar Bonev

10/15/2018, 2:29 PM
Because they're all packages I guess
h

hho

10/15/2018, 2:29 PM
Because you've created a File and not a Class?
👆 1
h

Hamza

10/15/2018, 2:30 PM
ohhhh
wait if i select the class, or interface option
will it make the packages?
h

hho

10/15/2018, 2:30 PM
I think so
h

Hamza

10/15/2018, 2:30 PM
let me try
t

Tsvetozar Bonev

10/15/2018, 2:31 PM
yes it does, everything before the last dot is made into a package and then it is the name of the file
h

Hamza

10/15/2018, 2:31 PM
DAMN YES. I am so happy
h

hho

10/15/2018, 2:32 PM
🙂