And every person that tells you that there won't be any jobs after AI passes a threshold has already considered your railroad question, and decided that for various reasons the AI shift is different.
There's a big difference between crossing a threshold where machines do one or two specific things better than we do and crossing one where they do everything better. There's certainly an argument about whether or not that's likely or imminent, but it's impossible to deny that strong, singularity-style AI, if discovered, would be a lot more of a disruption to our usefulness than railroads were.