1 Matching Annotations
  1. Apr 2025
    1. Lwt will allow utop to read one character

      What does this mean? When I tried this, Lwt allowed utop to read an entire line, not just a single character. Furthermore, isn't that exactly what's expected from this code? What is confusing about it? Also, utop interpreted read_line and stdin as referring to the functions in Stdlib when I tried it, so I needed to prefix both of them with Lwt_io to get this code to work.