Summary of ruby-dev 17609-17666:
[ruby-dev:17615] substitution at when-clause
Takaaki Tateishi proposed to extend the case-expression, so that
we can substitute a variable with the result of comparison '==='
at when-clause as follows:
case "abc100def"
when /\d+/ => pos
p pos # => 3
...
However, Matz didn’t agree with him since the semantics is not
intuitively appropriate.
Keiju Ishitsuka also proposed another extensions which allow us
to use block-like expression in case-expression as follows:
case {|v| v == x }
when v1
...
for x case v == x
when v1
...
The above expression is almost equivalent to the following expression:
f = proc{|v| v == x}
case
when f.call(v1)
...
We can obtain a result of comparison using this idea:
case {|v| $result = (v == x)}
when v1
...
Matz was being positive about this idea.
[ruby-dev:17633] rdtool (the newest ruby documents)
Wakou Aoyama proposed that we had better automatically generating ruby’s
documentations using RD.
[ruby-dev:17662] update irb to cvs repository
Ishitsuka Keiju announced that he would update irb in the official CVS
repository.
···
–
Takaaki Tateishi ttate@kt.jaist.ac.jp
Takaaki Tateishi wrote:
[ruby-dev:17633] rdtool (the newest ruby documents)
Wakou Aoyama proposed that we had better automatically generating ruby’s
documentations using RD.
Did you check RDoc? It’s awesome.
Tobi
···
–
http://www.pinkjuice.com/
There was a talk of bundling rdtool and Matz wrote that he would use
RWiki to manage documentations before the above proposal.
I think that important point in his idea is to use something like
RD for automatically generating ruby’s documentations, since it is
a little difficult to manage sources and documentations separately.
There is no english manual of ruby-1.6 now.
···
At Tue, 9 Jul 2002 03:42:12 +0900, Tobias Reif wrote:
[ruby-dev:17633] rdtool (the newest ruby documents)
Wakou Aoyama proposed that we had better automatically generating
ruby’s
documentations using RD.
Did you check RDoc? It’s awesome.
–
Takaaki Tateishi ttate@kt.jaist.ac.jp
Thanks. Yes, It’s good, too. I hope bundled tools for RD.
(c.f. rdtool support for manual page.)
···
On Tue, Jul 09, 2002 at 03:42:12AM +0900, Tobias Reif wrote:
[ruby-dev:17633] rdtool (the newest ruby documents)
Wakou Aoyama proposed that we had better automatically generating ruby’s
documentations using RD.
Did you check RDoc? It’s awesome.
–
Wakou Aoyama wakou@ruby-lang.org
Wakou Aoyama wrote:
Thanks. Yes, It’s good, too. I hope bundled tools for RD.
(c.f. rdtool support for manual page.)
Ah OK. Dave, will RDoc feature man page output?
Tobi
···
–
http://www.pinkjuice.com/
Takaaki Tateishi wrote:
I think that important point in his idea is to use something like
RD for automatically generating ruby’s documentations, since it is
a little difficult to manage sources and documentations separately.
That’s what I thought; perhaps you want to try RDoc and see if it fits
your bill even better for that task.
Tobi
···
–
http://www.pinkjuice.com/