I personally don’t like the convention to use comments. It feels more like a hack than a language feature. But it’s not a show-stopper.
I would vote for [Externs] or @externs rather than /*@externs*/ On Dec 14, 2016, at 1:19 AM, Alex Harui <aha...@adobe.com> wrote: > As an ASDoc tag, so /** @externs */ > > On 12/13/16, 1:23 PM, "Harbs" <harbs.li...@gmail.com> wrote: > >> Do you mean /*@externs*/ or @externs (which is currently not valid code)? >> >> On Dec 13, 2016, at 6:19 PM, Alex Harui <aha...@adobe.com> wrote: >> >>> >>> >>> On 12/13/16, 12:48 AM, "Harbs" <harbs.li...@gmail.com> wrote: >>> >>>> What I’d really like to do would be to define a class like this: >>>> >>>> package >>>> { >>>> import stream.Stream; >>>> >>>> [Extern] >>>> public class JSZip >>>> { >>>> public function generateNodeStream(nsp:NodeStreamParam):Stream{ >>>> return null; >>>> } >>>> } >>>> >>>> } >>>> And the compiler would know to generate externs from this class and it >>>> should “just work”. >>>> >>>> This would make it MUCH easier to create swc libraries of externs as >>>> well. >>> >>> File a JIRA. Although I would much rather use @externs instead >>> [Externs] >>> >>> -Alex >>> >> >