home.social

#filepath — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #filepath, aggregated by home.social.

  1. Can anyone point me to an online Java compiler which runs the JDK on Windows? I only find Linux systems.

    I would be particularly interested in what

    java.nio.file.Path.of("a/b/c")

    returns on a Windows system. My hunch is that it is the same as

    java.nio.file.Path.of("a\\b\\c")

    because the forward slash, afair, also works as a path separator. Or is the forward slash merely a no-go character like ':' and many others?

    #java #windows #filepath #filename

  2. Can anyone point me to an online Java compiler which runs the JDK on Windows? I only find Linux systems.

    I would be particularly interested in what

    java.nio.file.Path.of("a/b/c")

    returns on a Windows system. My hunch is that it is the same as

    java.nio.file.Path.of("a\\b\\c")

    because the forward slash, afair, also works as a path separator. Or is the forward slash merely a no-go character like ':' and many others?

    #java #windows #filepath #filename

  3. Can anyone point me to an online Java compiler which runs the JDK on Windows? I only find Linux systems.

    I would be particularly interested in what

    java.nio.file.Path.of("a/b/c")

    returns on a Windows system. My hunch is that it is the same as

    java.nio.file.Path.of("a\\b\\c")

    because the forward slash, afair, also works as a path separator. Or is the forward slash merely a no-go character like ':' and many others?

    #java #windows #filepath #filename

  4. Can anyone point me to an online Java compiler which runs the JDK on Windows? I only find Linux systems.

    I would be particularly interested in what

    java.nio.file.Path.of("a/b/c")

    returns on a Windows system. My hunch is that it is the same as

    java.nio.file.Path.of("a\\b\\c")

    because the forward slash, afair, also works as a path separator. Or is the forward slash merely a no-go character like ':' and many others?

    #java #windows #filepath #filename

  5. Can anyone point me to an online Java compiler which runs the JDK on Windows? I only find Linux systems.

    I would be particularly interested in what

    java.nio.file.Path.of("a/b/c")

    returns on a Windows system. My hunch is that it is the same as

    java.nio.file.Path.of("a\\b\\c")

    because the forward slash, afair, also works as a path separator. Or is the forward slash merely a no-go character like ':' and many others?

    #java #windows #filepath #filename

  6. @nicklockwood The old assertions take

    file: StaticString = #filePath, line: UInt = #line

    The new ones are slightly different (String and Int), plus the extra fileID & column

  7. @nicklockwood The old assertions take

    file: StaticString = #filePath, line: UInt = #line

    The new ones are slightly different (String and Int), plus the extra fileID & column

  8. @nicklockwood The old assertions take

    file: StaticString = #filePath, line: UInt = #line

    The new ones are slightly different (String and Int), plus the extra fileID & column

  9. @nicklockwood The old assertions take

    file: StaticString = #filePath, line: UInt = #line

    The new ones are slightly different (String and Int), plus the extra fileID & column

  10. @nicklockwood The old assertions take

    file: StaticString = #filePath, line: UInt = #line

    The new ones are slightly different (String and Int), plus the extra fileID & column

  11. @polpielladev
    Yeah, thats what I meant. As I have very simple Packages and the only difference between them is the name, I now use this trick to dynamically generate the name of the package from its foldername:

    let name = String(#filePath.split(separator: "/").reversed()[1])

    This way, all the package.swift files are identical.

  12. @polpielladev
    Yeah, thats what I meant. As I have very simple Packages and the only difference between them is the name, I now use this trick to dynamically generate the name of the package from its foldername:

    let name = String(#filePath.split(separator: "/").reversed()[1])

    This way, all the package.swift files are identical.

  13. @polpielladev
    Yeah, thats what I meant. As I have very simple Packages and the only difference between them is the name, I now use this trick to dynamically generate the name of the package from its foldername:

    let name = String(.split(separator: "/").reversed()[1])

    This way, all the package.swift files are identical.

  14. @polpielladev
    Yeah, thats what I meant. As I have very simple Packages and the only difference between them is the name, I now use this trick to dynamically generate the name of the package from its foldername:

    let name = String(#filePath.split(separator: "/").reversed()[1])

    This way, all the package.swift files are identical.

  15. @polpielladev
    Yeah, thats what I meant. As I have very simple Packages and the only difference between them is the name, I now use this trick to dynamically generate the name of the package from its foldername:

    let name = String(#filePath.split(separator: "/").reversed()[1])

    This way, all the package.swift files are identical.

  16. TIL that how GitHub figures out syntax highlighting for Swift files is one huge plist file of 5000 lines maintained by TextMate and pulled in as a submodule into linguist. Hopefully this PR should also add proper syntax highlighting for `#filePath`: github.com/textmate/swift.tmbu