3 ms·
That's pretty complicated; you could just do: //usr/bin/env swift $0 "$@"; exit $? println("helloo")
by lambda 12y ago
That's pretty complicated; you could just do:
//usr/bin/env swift $0 "$@"; exit $?
println("helloo")
- mikeash 12y agoMy approach avoids recompiling the program every time you run it, and it also makes it much easier to debug crashes. At least when I was doing this, running `swift` directly produced really bad crash info when things went wrong.