[Rpm-maint] [rpm-software-management/rpm] Implement a table-like shortcut to rpm macros in Lua (#1398)

Panu Matilainen notifications at github.com
Tue Oct 13 12:35:38 UTC 2020


Other random remarks of the day:
- We could of course put it into rpm namespace, and macro-heavy users can declare their own shortcut, eg `m = rpm.macro; m._libdir = "foo"`, but then if every Lua macro starts with that, we've failed somewhere
- This doesn't enable *anything* new, it's all just for convenience. And as such, all this could be also implemented in pure Lua instead. Doing that might open some other possibilities, OTOH keeping things in one place and one language has other benefits.
- I realized this is missing the mapping for Lua native deletion, ie `m[key] = nil` to undefine. Will add in a later version.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1398#issuecomment-707708538
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201013/bf876a1d/attachment.html>


More information about the Rpm-maint mailing list