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

Panu Matilainen notifications at github.com
Wed Oct 14 16:08:16 UTC 2020


Regarding the auto-quotation behavior, I think we could leave that up to the caller, the Lua table syntax lends itself to this nicely:

```
res = macro.foo(1, 2, 3)
res = macro.foo({1, 2, 3})
```

In the first case, no automatic quotation is done so it's *literally* equivalent of joining the arguments with " " and tossing to rpm.expand() so there's no if's or buts about deviation in behavior. In the second case the syntax nicely hints towards quotation, and it has room for other enhancements via further arguments.

-- 
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-708503862
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201014/b3f99ae1/attachment.html>


More information about the Rpm-maint mailing list