Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.postscript > #2477

Re: Do you ever use the obscure PostScript command '...'?

From Markus Triska <triska@metalevel.at>
Newsgroups comp.lang.postscript
Subject Re: Do you ever use the obscure PostScript command '...'?
Organization man
References <711068ba-9b2b-4535-9f7f-f0d160ded354@googlegroups.com> <65eddf10-6b18-4964-97c7-7104da50a46c@googlegroups.com> <b3aba31e-b798-402f-ab27-492e6b6abaa8@googlegroups.com>
Message-ID <m2oa9yhcx3.fsf@metalevel.at> (permalink)
Date 2016-03-28 16:53 +0200

Show all headers | View raw


jdaw1 <jdawiseman@gmail.com> writes:

> If writing a complicated sub-routine, with many possible parameters,
> it is natural to pass all the parameters in the form of a dictionary,
> which is then inspected with 'known'. So for me this isn't obscure. Or
> it is obscure, but only if not doing this.

So far, I've never done this. known in itself is maybe not very obscure,
but among the operators I use regularly, it is probably the one that is
the most obscure (least used in other programs), and I am using it only
in the context I have shown, without any other need for it so far.

In your use case, you are probably using known to use a default value if
the parameter does not appear in the dictionary? I always try to arrange
my procedures so that their parameters flow naturally and implicitly on
the operand stack, so I have never used your method, but I can see how
it can be useful when passing (or not) many possible parameters.

All the best,
Markus

Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Do you ever use the obscure PostScript command '...'? jdaw1 <jdawiseman@gmail.com> - 2016-03-27 12:04 -0700
  Re: Do you ever use the obscure PostScript command '...'? Markus Triska <triska@metalevel.at> - 2016-03-27 22:57 +0200
    Re: Do you ever use the obscure PostScript command '...'? Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-01 18:37 -0700
      Re: Do you ever use the obscure PostScript command '...'? Lawrence D’Oliveiro <lawrencedo99@gmail.com> - 2016-06-01 18:44 -0700
  Re: Do you ever use the obscure PostScript command '...'? luser- -droog <mijoryx@yahoo.com> - 2016-03-27 14:02 -0700
    Re: Do you ever use the obscure PostScript command '...'? jdaw1 <jdawiseman@gmail.com> - 2016-03-28 06:32 -0700
      Re: Do you ever use the obscure PostScript command '...'? Markus Triska <triska@metalevel.at> - 2016-03-28 16:53 +0200
      Re: Do you ever use the obscure PostScript command '...'? luser- -droog <mijoryx@yahoo.com> - 2016-03-28 13:07 -0700
  Re: Do you ever use the obscure PostScript command '...'? Martin Leese <please@see.Web.for.e-mail.INVALID> - 2016-03-28 18:55 -0600
  Re: Do you ever use the obscure PostScript command '...'? jdaw1 <jdawiseman@gmail.com> - 2016-04-02 16:22 -0700
    Re: Do you ever use the obscure PostScript command '...'? luser- -droog <mijoryx@yahoo.com> - 2016-04-02 22:03 -0700
  Re: Do you ever use the obscure PostScript command '...'? jdaw1 <jdawiseman@gmail.com> - 2016-04-13 06:09 -0700
    Re: Do you ever use the obscure PostScript command '...'? jdaw1 <jdawiseman@gmail.com> - 2016-04-14 10:02 -0700
      Re: Do you ever use the obscure PostScript command '...'? luser- -droog <mijoryx@yahoo.com> - 2016-04-14 20:24 -0700
        Re: Do you ever use the obscure PostScript command '...'? luser- -droog <mijoryx@yahoo.com> - 2016-04-14 20:28 -0700
        Re: Do you ever use the obscure PostScript command '...'? jdaw1 <jdawiseman@gmail.com> - 2016-04-15 15:49 -0700
          Re: Do you ever use the obscure PostScript command '...'? luser- -droog <mijoryx@yahoo.com> - 2016-04-15 23:30 -0700
            Re: Do you ever use the obscure PostScript command '...'? jdaw1 <jdawiseman@gmail.com> - 2016-04-16 04:49 -0700
  Re: Do you ever use the obscure PostScript command '...'? jdaw1 <jdawiseman@gmail.com> - 2016-12-03 16:27 -0800
    Re: Do you ever use the obscure PostScript command '...'? jdaw1 <jdawiseman@gmail.com> - 2016-12-03 16:49 -0800
      Re: Do you ever use the obscure PostScript command '...'? luser droog <luser.droog@gmail.com> - 2016-12-04 13:42 -0800
    Re: Do you ever use the obscure PostScript command '...'? luser droog <luser.droog@gmail.com> - 2016-12-08 20:37 -0800
    Re: Do you ever use the obscure PostScript command '...'? Mark Carroll <mtbc@bcs.org> - 2016-12-20 17:01 +0000

csiph-web