This program is invalid in #OCaml. It is okay. I wanted to confirm that OCaml isn’t what I was looking for.
type user = {
name : string;
email : string;
}
type xuser = {
name : string;
email : string;
tel: string;
}
let () =
let u1 = { name = "v1"; email = "v1@ee" } in
let u2 = { u1 with name = "v2" } in
let u3 = { u2 with tel = "66" } in
print_string u3.tel;;
CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.
https://miraiverse.xyz/notice/AQUuYRsAffs3iNQd28