CoderSupreme@programming.dev to Programming@programming.dev · edit-28 个月前What are your favorite statically typed, compiled, memory safe programming languages?message-squaremessage-square121fedilinkarrow-up1112
arrow-up1112message-squareWhat are your favorite statically typed, compiled, memory safe programming languages?CoderSupreme@programming.dev to Programming@programming.dev · edit-28 个月前message-square121fedilink
minus-squarexigoi@lemmy.sdf.orglinkfedilinkEnglisharrow-up3·8 个月前I’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·8 个月前Is Printf.printf not a good generic print function? It’s even variadic!
minus-squarexigoi@lemmy.sdf.orglinkfedilinkEnglisharrow-up1·8 个月前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.
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.