Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Implement a key-value deserialization or something similar
- X-seq: zsh-users 21837
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Implement a key-value deserialization or something similar
- Date: Mon, 5 Sep 2016 23:25:01 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=NokmxmiB7xLjcmjaQ5Jz2m6KAklFfi8c/AoVlNF8KCA=; b=FQEpcisaDcWFVDP/WhBlSEY5b3Pj7yuZ6KNLq9rT8HAeVPO1XY8XhAiDpxPFbUMdd/ 0+D99gyDV8Wx+5QdoFW/4ARmqobltRYQpOxBckbyNWxJ1weUIq70qQ27iF4J918X8xZr tRVXLBnxmlAc16nALGrDKwlMcWjjFKR2K54OoUoB6TvDHqy8kgvj4xvelUA4Y3v0jmht bjB1DueGWJ2Jm56JFMIyK/uljDpa03E9SvSFtEEFAYzwZjbeD/vd+3q9GDX7eXv2mHBA VSiupqKWxA0QMJVlrd9iHvKhmaIcKWr1jvgZ1nakFQcN+nv6GbP5qumr1Phwa0rOWjag 7/dQ==
- In-reply-to: <CAKc7PVB19jOGwcsu5bL2zGuEioJXM9LuT009WDzZdg2eNobmQA@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVB19jOGwcsu5bL2zGuEioJXM9LuT009WDzZdg2eNobmQA@mail.gmail.com>
PS. To put it other way, it's that I need to pass a bunch of simple
marks on some data to a function and don't need reserved positional
parameters for them, especially because some of the marks are
optional.
Best regards,
Sebastian Gniazdowski
On 5 September 2016 at 22:47, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
> Hello,
> I'm wondering how to best implement a parameter $x, say $7 – I mean a
> last parameter to a parameter-rich function – that would serve as "put
> various key-data things here to stop adding more parameters"? Possible
> call could be: afunction param1 param2 ... "MYDATA=1 OTHERDATA=true"
>
> Best regards,
> Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author