CoderSupreme@programming.dev to Programming@programming.dev · edit-22 months agoWhat are your favorite statically typed, compiled, memory safe programming languages?message-squaremessage-square120fedilinkarrow-up1110arrow-down16
arrow-up1104arrow-down1message-squareWhat are your favorite statically typed, compiled, memory safe programming languages?CoderSupreme@programming.dev to Programming@programming.dev · edit-22 months agomessage-square120fedilink
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·2 months agoIs Printf.printf not a good generic print function? It’s even variadic!
minus-squarexigoi@lemmy.sdf.orglinkfedilinkEnglisharrow-up1·2 months 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.