Replies: 1 comment 2 replies
-
I keep meaning to write up some docs about interfaces...sorry about that. So, interfaces are officially supported in brighterscript right now. They're a compile-time only construct, so they don't exist at runtime (which is why they disappear from the transpiled code). Right now, you can use them as class property types, interface property types, and function parameter types. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Poking in the source internals, I found some references on a way to set up "interfaces"; for example there are some tests with a syntax like
I don't see any references on
interface
on the docs, and if I try to write one, I see thatbsc
doesn't give me errors, but it seems that the interface definition "disappears" in the generated.brs
files.Is this a supported feature from the language? will it become one? (did I misunderstood it?)
Beta Was this translation helpful? Give feedback.
All reactions