Re:New features coming in Julia 1.7
by stewbrew on Tuesday October 05, 2021 @08:35AM
(#28758507)
Is there a way to statically type check a Julia program? It would be really nice if the compiler threw an error on obviously wrong code.
[ Parent
| on HN ]
Re:New features coming in Julia 1.7
by jakobnissen on Tuesday October 05, 2021 @12:51PM
(#28762028)
Yes - the package JET.jl. It's still in its early phases so it's pretty rough, but I use it daily at my job.
There are a lot of caveats, though. Julia is fundamentally a dynamic language, so you can easily write code that works perfectly well but where the compiler has no idea what is going on before you run it. That code will not be statically analyzable.