-
Notifications
You must be signed in to change notification settings - Fork 2
Proposal: Extension Structure #1
Comments
Why have a class? When would an extension be instantiated more then once? |
The reason I chose a class here is because it makes it easy to extend. If we were just using an object how would people best do inheriting from an object? We do instance only once, you're right |
What does inheritance provide for us here? all i'm seeing is a single
interface, so we could just, e.g., do export function install() instead of
having a full class
…On Fri, Aug 16, 2019 at 12:05 AM Wolvan ***@***.***> wrote:
The reason I chose a class here is because it makes it easy to extend. If
we were just using an object how would people best do inheriting from an
object?
We do instance only once, you're right
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=AABZCV47C6RAKNFBJYZ4ABTQEYRQTA5CNFSM4IMCDBH2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4NTHJI#issuecomment-521876389>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABZCV3HCQPAGXUGSJWRYD3QEYRQTANCNFSM4IMCDBHQ>
.
|
The reason I went with a class is that we can modify the base class, add new functions and have all inheriting Extensions immediately work with the new system without them having to update. I also realized I forgot to make |
I propose the following structure for XKit 8 extension:
ES6 Module
BaseExtension.js
XKit Extension:
Questions to answer:
__meta
blockThe text was updated successfully, but these errors were encountered: