Ask a Question related to Ruby, Design and Development.
-
Christoph #1
Re: "stereotyping" (was: Re: Strong Typing (Re: Managing metadata about attribute types) )
Yukihiro Matsumoto wrote:
...Ruby's default argument mechanism makes it impossible to add> The only reason the result is _not_ available from post
> method is we don't have neat syntax construct. Any proposal?
the ``main return'' value as an extra argument of a post method,
so we need to offer the access to the ``main return'' value via a
method or a variable automatically provided for every post method.
Since ``super'' is freely available we could use it (super with no arguments
allowed) - of course this is ``old school keyword overloading'' which
I don't like too much, so I probably would opt for another keyword
like ``main:result'', ``main_result'', ``post:result'' or ``post_result''
(we could use the same keyword to provide access to the ``main return''
value in a wrap method).
One way or the other, I really really want to have this feature even
at the cost of ugly syntax or keyword overloading. Any chance we
got to play with this in 1.9? I am also wandering about your planning on
the interaction of blocks with the pre,wrap,post mechanism.
/Christoph
Christoph Guest
-
"stereotyping" (was: Strong Typing (Managing metadata about attribute types) )
On Thu, 20 Nov 2003 06:51:49 +0900, Sean O'Dell wrote: Because my libraries tend to be very informative about errors. I use custom exceptions... -
"stereotyping" (was: Strong Typing (Managing metadata about attribute types) )
On Thu, 20 Nov 2003 06:02:05 +0900, Sean O'Dell wrote: What you're talking about and what I'm talking about are two different things. I'm talking... -
"stereotyping" (was: Strong Typing (Managing metadata about attribute types)
On Thu, 20 Nov 2003 05:17:10 +0900, Sean O'Dell wrote: would irb(main):002:0> require 'socket' => true irb(main):003:0> Socket.ancestors... -
"stereotyping" (was: Strong Typing (Managing metadata about attribute types)
On Thu, 20 Nov 2003 04:37:50 +0900, Sean O'Dell wrote: This argument is circular. Static typing in Ruby carries too high a performance price,... -
"stereotyping" (was: Strong Typing (Managing metadata about attribute types)
On Wednesday 19 November 2003 03:55 am, dblack@wobblini.net wrote: Actually, kind_of? is far more informative. kind_of? indicates that it...



Reply With Quote

