gpopides@lemmy.world to Programmer Humor@lemmy.ml · 1 year agoBrought to you by the ocaml ganglemmy.worldimagemessage-square4fedilinkarrow-up10arrow-down10
arrow-up10arrow-down1imageBrought to you by the ocaml ganglemmy.worldgpopides@lemmy.world to Programmer Humor@lemmy.ml · 1 year agomessage-square4fedilink
minus-squarevoxel@sopuli.xyzlinkfedilinkarrow-up0·1 year agorudt has implicit typing by default for variables tho…?
minus-squareFishFace@lemmy.worldlinkfedilinkarrow-up0·1 year agoYeah but it doesn’t cross function boundaries so it’s more limited.
minus-squareKnusper@feddit.delinkfedilinkarrow-up0·1 year agoIn other words, in OCaml, you don’t have to write type annotations into the function parameter list. It will infer even those. It’s useful for small ad-hoc functions, but personally, I’m glad that Rust is more explicit here.
rudt has implicit typing by default for variables tho…?
Yeah but it doesn’t cross function boundaries so it’s more limited.
In other words, in OCaml, you don’t have to write type annotations into the function parameter list. It will infer even those.
It’s useful for small ad-hoc functions, but personally, I’m glad that Rust is more explicit here.