On Jun 23, 9:21 pm, "Gregory Brown" <gregory.t.br... / gmail.com> wrote:
> On 6/23/07, Trans <transf... / gmail.com> wrote:
>
>
>
>
>
> > On Jun 23, 6:09 pm, darren kirby <bulli... / badcomputer.org> wrote:
> > > *Sigh*, I mean:
>
> > >   # Writes embedded images to a file
> > >   #
> > >   # :call-seq:
> > >   #   write_picture()                       -> nil
> > >   #   write_picture(:outfile=>"str")        -> nil
> > >   #   write_picture(:n=>int)                 -> nil
> > >   #   write_picture(:outfile=>"str", :n=>int) -> nil
>
> > > -d
>
> > Bingo.
>
> > But hey, as Resident Dreamer, I can't help but wonder how cool it
> > might be to have highly descriptive and auto-flexible arguments:
>
> >   def write_picture(n <= Integer, outfile <= String)
> >     ...
> >   end
>
> >   write_picture("front cover", 1)
> >   write_picture(1, "front cover")
>
> > Sacrifice a little duck-typiness for some arg-flippiness :)
>
> Yuck.

Is the "formalist" in you disturbed by this?

I think too many programmers feel that way too. See, I wonder when we
ever are going to get past conforming to the requirements of our
computer systems, and start having them conform to ours.

T.