News for hackers. Stuff that matters.
Re:What I wish I knew when learning OCaml (2018) by legobmw99 on Tuesday May 03, 2022 @09:00AM (#31247725)
OCaml also has a built in function failwith: string -> ‘a, so you can print an error in those cases. If it’s a code path you ever think will execute, failwith “some error here” is probably better than assert false

There are no comments on this comment yet.