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

            Bug ID: 64366
           Summary: Use marker interfaces to distinguish formatters with
                    different output types.
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: WikidataRepo
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
       Web browser: ---
   Mobile Platform: ---

Formatters that generate plain text, wikitext, and html are not interchangable
in the OOP sense. To fix this, all formatters should get marker interfaces that
indicate what format they return, so calling code can require that specific
interface to be implemented to make sure the formatter actually generate the
kind of output that is expected in a given context.

-- 
You are receiving this mail because:
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