Socket
Socket
Sign inDemoInstall

multimix

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multimix

flexible object copying


Version published
Weekly downloads
18
increased by157.14%
Maintainers
1
Weekly downloads
 
Created
Source

SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> Table of Contents generated with DocToc

  • MultiMix

MultiMix

Conventional inheritance in its two main

—the 'classical' variant known from languages like Java, Python and others as well as the 'prototypal' variant known mainly from JavaScript—both assert

  • that it makes sense to 'derive' one object (the 'derivative') from another (its 'antetype')

  • both to conserve memory and to organize functionalities;

  • that the only formally supported intentional relationship between a derivative and its antetype should be 'is-a' (to the exclusion of 'has-a', 'uses-a', 'partly-resembles-a' &c);

  • that the only formally defined extensional relationship between the attributes of a derived object and those of its antetype should be take-all-or-override-all: either your derivation has an attribute x or it doesn't; if it does, it will simply override (shadow) any attribute by the same name in the antetype.

Crucially, the only way to formally derive one object from another is to provide a list of overriding features, period.

Keywords

FAQs

Package last updated on 07 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc