From the manual:
Adding [type] annotations serves three primary purposes: to take advantage of Julia’s powerful multiple-dispatch mechanism, to improve human readability, and to catch programmer errors.
I’m curious why memory and computational efficiency is not listed there. For example, having image data represented by a default Int64
pixels would be a huge memory waste and incur significant performance penalty in case where UInt8
would be sufficient.
6 posts - 4 participants