News for hackers. Stuff that matters.
Re:WASM_of_OCaml by tome on Monday July 24, 2023 @04:05PM (#36853478)
What do you do if you want to disambiguate the return type? I suppose `intFromString` works. I'm not sure what I chose `intOfString`. It's not because I'm French!
Re:WASM_of_OCaml by marcosdumay on Monday July 24, 2023 @09:02PM (#36856440)
You would declare the type of the returning value:

(i :: Int) = fromString s

Although once in a while it's useful to make a short synonym for disambiguating the type, x_of_y is certainly not a short synonym, so it's not commonly used.