You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's an attribute of a module or constructor? Do you have an example?
struct foo
a
b
end
f =foo(1,2)
f.a
f.b
I think foo.a and foo.b are attributes of the constructor foo (or are they called with another name?) It's cool to have a and b in this case highlighted.
Ah, I see. Not sure whether I like the idea much though.
Oh and re terminology: a and b are attributes (although I think I'd call them "fields") of f, which is an instance of foo. foo(1,2) is a call to the constructor.
In Python the attributes are highlighted as red and that seems a lot better.
The text was updated successfully, but these errors were encountered: