Add "extend" api to handle "require+extend" cases #80

Open
opened 2022-10-05 15:09:21 +02:00 by kazhnuz · 0 comments
Owner

instead of

Parent = require "framework.stuff.things.class"
local Stuff = Parent:extend()

We could use

local Stuff = extend "framework.stuff.things.class"

The function would be a simple

function extend(parent)
  return require(parent):extend()
end
instead of ```lua Parent = require "framework.stuff.things.class" local Stuff = Parent:extend() ``` We could use ```lua local Stuff = extend "framework.stuff.things.class" ``` The function would be a simple ```lua function extend(parent) return require(parent):extend() end ```
kazhnuz added this to the epervier 0.7.0 milestone 2022-10-05 15:09:21 +02:00
kazhnuz added the
1. Feature
1. Clean-up
2. Deliverable
4. Birb Core
labels 2022-10-05 15:09:21 +02:00
Sign in to join this conversation.
No description provided.