CoderSupreme to Programming · edit-22 months agoWhat are your favorite statically typed, compiled, memory safe programming languages?message-squaremessage-square121fedilinkarrow-up1113arrow-down16
arrow-up1107arrow-down1message-squareWhat are your favorite statically typed, compiled, memory safe programming languages?CoderSupreme to Programming · edit-22 months agomessage-square121fedilink
minus-squarexigoi@lemmy.sdf.orglinkfedilinkEnglisharrow-up3·2 months agoI’ve recently been trying to learn OCaml and find it really nice. The major pain points are C-style separate compilation with manually created headers Small standard library No generic print function Hard to use external libraries
minus-squareAbelianGrape@beehaw.orglinkfedilinkarrow-up1·1 month agoIs Printf.printf not a good generic print function? It’s even variadic!
minus-squarexigoi@lemmy.sdf.orglinkfedilinkEnglisharrow-up1·1 month agoWhen you want to print something, you can’t just Printf.printf x, you have to explicitly give it instructions on how to print a value of that specific type.
I’ve recently been trying to learn OCaml and find it really nice. The major pain points are
Is
Printf.printf
not a good generic print function? It’s even variadic!When you want to print something, you can’t just
Printf.printf x
, you have to explicitly give it instructions on how to print a value of that specific type.