Starting from 1.4.20, you can create a ‘Path’ with the ‘/’ operator (currently experimental): #KotlinTips
@kotlin You can also do it without an experimental api. Though, it's essentially the same thing.
@kotlin Why not like this ? val path = Path(“one/two/three.txt)
@kotlin Maybe this feature make beginners more complicated. I think using string to concat is better than rewriting divide operator
@kotlin I think this should not be available out of the box in kotlin. This could be written via extension funs by anyone, so create a separate lib for this features!
@kotlin in my OS the path separator character is '\'. Is it also overloaded? Will `Path("A") / "B"` work on my OS? :)
@kotlin Will it support '\' operator for Windows?
@kotlin I was working on a kotlin project using a File class and this makes a lot of sense.
@kotlin Just 2 days ago I needed that use case, but for File.resolve()
@kotlin @DuncanConroy something for your Kotlin talk? ;-)
@kotlin One of useful feature for some DSL I've seen (C# Nuke), it's nice to see it in Kotlin too