4 ms·
This is blogspam. One thing that did bother me: > Since the Julia-creators also wanted it to be easy to learn, Julia fully supports dynamical typing. But in c
by Phlogistique 6y ago
This is blogspam.
One thing that did bother me:
> Since the Julia-creators also wanted it to be easy to learn, Julia fully supports dynamical typing. But in contrast to Python, you can introduce static types if you like — in the way they are present in C or Fortran, for example.
That's misleading. As Julia co-creator Stefan Karpinski puts it in this great Stack Overflow answer [1],
> This is not the way Julia works – code with type annotations is still dynamic and has the same semantics as code without type annotations.
> ...
> For the most part in Julia, type inference is just an optimization – your code will work the same way with or without it – but with successful type inference, it will run a lot faster.
[1]: https://stackoverflow.com/questions/28078089/is-julia-dynamically-typed https://stackoverflow.com/questions/28078089/is-julia-dynami...