Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Purposes of explicit type annotations

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles