From: Sebastian Gniazdowski <sgniazdowski@gmail.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: Implement a key-value deserialization or something similar
Date: Mon, 5 Sep 2016 23:25:01 +0200 [thread overview]
Message-ID: <CAKc7PVAwqx3ccrAbfB+9FtrAKEZ5xqStg7Nd4GLPg2W4nDVWeA@mail.gmail.com> (raw)
In-Reply-To: <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@gmail.com> 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
next prev parent reply other threads:[~2016-09-05 21:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-05 20:47 Sebastian Gniazdowski
2016-09-05 21:25 ` Sebastian Gniazdowski [this message]
2016-09-05 21:59 ` Sebastian Gniazdowski
[not found] <CAKc7PVB19jOGwcsu5bL2zGuEioJXM9LuT009WDzZdg2eNobmQA__43171.2364581928$1473108546$gmane$org@mail.gmail.com>
2016-09-06 0:20 ` Daniel Shahaf
2016-09-07 8:05 ` Bart Schaefer
2016-09-07 18:26 ` Sebastian Gniazdowski
[not found] ` <CAKc7PVCjCwmGdZk+mKUK2YCps2zufeUv4-=WO_yfr=fJ8PtNwQ__7689.56577308035$1473272898$gmane$org@mail.gmail.com>
2016-09-07 22:52 ` Daniel Shahaf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKc7PVAwqx3ccrAbfB+9FtrAKEZ5xqStg7Nd4GLPg2W4nDVWeA@mail.gmail.com \
--to=sgniazdowski@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).