On Wednesday, March 20, 2019 at 8:45:24 PM UTC-5, Brandon Barker wrote: > > I'm a little rusty, so can't come up with many good examples. > > Apparently it is possible to do something like this in OCaml: > > implement > main0 () = { > val () = let > val ha = print("ha") > in > (ha; ha) // How to get two ha's here? > end > } >
Something like the ATS is certainly possible: let ha = (print_string "ha") in ha; ha And you get similar results in OCaml: 'ha' is bound to unit, and only one 'ha' is printed. -- You received this message because you are subscribed to the Google Groups "ats-lang-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-users+unsubscr...@googlegroups.com. To post to this group, send email to ats-lang-users@googlegroups.com. Visit this group at https://groups.google.com/group/ats-lang-users. To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/10858209-9986-4414-81ac-689b283ae2b7%40googlegroups.com.