Skip to content

New syntax for stamps as Babel plugin #80

Open
@koresar

Description

@koresar

I believe stamps are much better approach to OOP. In fact, I call classical OOP as BOP (Blueprint Oriented Programming).

Stamps can, should, and must be inbuilt into programming languages. Imagine you could write this in JS:

let StampA = stamp {
  myMethod() {},
  myState: "a state",
  static staticVar: "static var",
  init({instance, stamp, args}) { ... }
}
let StampB = stamp {
  static staticMethod() {}
}
let StampC = StampA.compose(StampB).props({ X: "y" });

var instance = StampC({X: "x"})

I haven't thought about syntax much (I haven't thought about it at all actually).

Do you get the idea? Do you feel it? Do you agree we can turn the programming world upside down?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions