There's still a difference between testing while writing it and after writing it that's independent of whether you have a REPL or not.
I do both, but I find the former significantly easier when you have a REPL vs. having to write little test programs on the side.