Last active
April 20, 2017 16:21
-
-
Save domsj/b0c9e863d07662138c14d025b3bdb19c to your computer and use it in GitHub Desktop.
parse_ocaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let () = | |
if false | |
then (); | |
print_endline "cucu1"; | |
if false | |
then | |
let () = print_endline "" in | |
(); | |
print_endline "cucu2" | |
(* | |
what will the above program print? | |
turns out it only prints "cucu1", not "cucu2" | |
*) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment