News for hackers. Stuff that matters.
Re:Julia 1.6: what has changed since Julia 1.0? by gugagore on Sunday February 14, 2021 @09:44PM (#26138485)
> It also can't catch trivial stuff like misspelling a struct field on a variable of known type.

The default definition is

`getproperty(x, f::Symbol) = getfield(x, f)`

and `getproperty` can be overridden for a type, so `foo.a` can succeed even if `getfield(foo, :a)` fails. (`getfield` cannot be overridden).

So it's not trivial to determine, given the the of `foo`, from the syntax `foo.a` whether that code errors.

There are no comments on this comment yet.