https://bugzilla.wikimedia.org/show_bug.cgi?id=39494

       Web browser: ---
             Bug #: 39494
           Summary: Export inelegant
           Product: MediaWiki extensions
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Scribunto
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


It's inelegant to have to explicitly export things when there is already a
"local" keyword. Why not export everything non-local by default?

If that is not possible for some reason, why not initialize an empty table for
each module, assign it a reserved name, and export it implicitly? I imagine
something like this implicitly wrapping each module:

local module = {};
<<module code>>
return module;

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to