Why does function containing Console.ReadLine() not complete?
问题 I am using Visual Studio 2012, and the function that calls Console.ReadLine() will not execute let inSeq = readlines () in this simple program open System open System.Collections.Generic open System.Text open System.IO #nowarn "40" let rec readlines () = seq { let line = Console.ReadLine() if not (line.Equals("")) then yield line yield! readlines () } [<EntryPoint>] let main argv = let inSeq = readlines () 0 I've been experimenting and researching this, and cannot see what is probably a very