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
Neva doesn't have pub (or private) modifiers for rec's field visibility. Instead, if one wants to have private and public fields use more specific type inside implementation and less specific for contract. E.g.
type {
Internal {
foo bar
bar baz
}
pub External { foo bar }
}
Internal type (e.g. baz is some local state) is used inside component and External is something component receive or send.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Neva doesn't have
pub
(orprivate
) modifiers forrec
's field visibility. Instead, if one wants to have private and public fields use more specific type inside implementation and less specific for contract. E.g.Internal
type (e.g.baz
is some local state) is used inside component andExternal
is something component receive or send.Beta Was this translation helpful? Give feedback.
All reactions