Skip to content

Commit

Permalink
chore: Add comment about Penlight class situation
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Sep 30, 2020
1 parent 29377fd commit 285e324
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cassowary/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ local cassowary
local epsilon = 1e-8
local count = 2

-- The subclass() and initialize() functions are utilities to simplify the
-- syntax of defining classes and populating instances. There is a long-hand
-- way to do this documented in Penlight, and a short-hand syntax like this that
-- should work but is too buggy to use. These workarounds work across a range
-- of versions. Someday it would be nice to deprecate these, but as of 1.9.2
-- these helper functions still work better than what is provided. See
-- https://github.com/lunarmodules/Penlight/projects/1
-- to track progress on _init() reform and syntax variations.
local subclass = function(base, inject)
return tablex.update(class(base), inject)
end
Expand Down

0 comments on commit 285e324

Please sign in to comment.