Swift certainly can be a scripting language.
#!/usr/bin/env swift
print("hello, world!") #!/usr/bin/env swift
print("hello, world!")Ideally it gives you some of the convenience and accessibility of a language like Python, combined with runtime efficiency of a language like Objective-C.
print("hello, world") is a cute example since it's a valid program in both Python and Swift.
(Though I still haven't forgiven Python for removing the print statement, which dates back to BASIC antiquity.)
No reason why Java and C++ couldn't do something similar though.