ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:48429] [ruby-trunk - Feature #10059] [Open]  [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが
       [not found] <redmine.issue-10059.20140718083020@ruby-lang.org>
@ 2014-07-18  8:30 ` qlli.illb
  2014-07-25  8:01 ` [ruby-dev:48448] [ruby-trunk - Feature #10059] " akr
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: qlli.illb @ 2014-07-18  8:30 UTC (permalink / raw
  To: ruby-dev

Issue #10059 has been reported by gogo tanaka.

----------------------------------------
Feature #10059:  [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが
https://bugs.ruby-lang.org/issues/10059

* Author: gogo tanaka
* Status: Open
* Priority: Low
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
タイトルに書きました通り、代数構造を記述する時にメタプログラミングは非常に非常に強力で

保守性や可読性を著しく推し上げます. 著しくです. これは代数的な性質(演算子の対称性、可逆性など)を記述出来る事に起因します.

しかし議論を呼びそうなのと取り分け優先度が高い訳でないので、提案レベルで簡単なPATCHを投げさせて頂きます. お手透きの時にでも目をお通し下さい.

---Files--------------------------------
using_define_method_for_Vector_arithmetic.patch (1.29 KB)
using_define_method_for_Scalar_arithmetic.patch (1.04 KB)
using_define_method_for_Matrix__arithmetic.patch (2.04 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-dev:48448] [ruby-trunk - Feature #10059]  [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが
       [not found] <redmine.issue-10059.20140718083020@ruby-lang.org>
  2014-07-18  8:30 ` [ruby-dev:48429] [ruby-trunk - Feature #10059] [Open] [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが qlli.illb
@ 2014-07-25  8:01 ` akr
  2014-07-29 20:21 ` [ruby-dev:48452] [ruby-trunk - Feature #10059] [Feedback] " kosaki.motohiro
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: akr @ 2014-07-25  8:01 UTC (permalink / raw
  To: ruby-dev

Issue #10059 has been updated by Akira Tanaka.


ふとパッチを見たのですが、これって rdoc で生成されるドキュメントはどうなるのでしょうか。

----------------------------------------
Feature #10059:  [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが
https://bugs.ruby-lang.org/issues/10059#change-48021

* Author: gogo tanaka
* Status: Open
* Priority: Low
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
タイトルに書きました通り、代数構造を記述する時にメタプログラミングは非常に非常に強力で

保守性や可読性を著しく推し上げます. 著しくです. これは代数的な性質(演算子の対称性、可逆性など)を記述出来る事に起因します.

しかし議論を呼びそうなのと取り分け優先度が高い訳でないので、提案レベルで簡単なPATCHを投げさせて頂きます. お手透きの時にでも目をお通し下さい.

---Files--------------------------------
using_define_method_for_Vector_arithmetic.patch (1.29 KB)
using_define_method_for_Scalar_arithmetic.patch (1.04 KB)
using_define_method_for_Matrix__arithmetic.patch (2.04 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-dev:48452] [ruby-trunk - Feature #10059] [Feedback]  [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが
       [not found] <redmine.issue-10059.20140718083020@ruby-lang.org>
  2014-07-18  8:30 ` [ruby-dev:48429] [ruby-trunk - Feature #10059] [Open] [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが qlli.illb
  2014-07-25  8:01 ` [ruby-dev:48448] [ruby-trunk - Feature #10059] " akr
@ 2014-07-29 20:21 ` kosaki.motohiro
  2014-09-12  4:26 ` [ruby-dev:48534] [ruby-trunk - Feature #10059] " mail
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: kosaki.motohiro @ 2014-07-29 20:21 UTC (permalink / raw
  To: ruby-dev

Issue #10059 has been updated by Motohiro KOSAKI.

Status changed from Open to Feedback

----------------------------------------
Feature #10059:  [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが
https://bugs.ruby-lang.org/issues/10059#change-48132

* Author: gogo tanaka
* Status: Feedback
* Priority: Low
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
タイトルに書きました通り、代数構造を記述する時にメタプログラミングは非常に非常に強力で

保守性や可読性を著しく推し上げます. 著しくです. これは代数的な性質(演算子の対称性、可逆性など)を記述出来る事に起因します.

しかし議論を呼びそうなのと取り分け優先度が高い訳でないので、提案レベルで簡単なPATCHを投げさせて頂きます. お手透きの時にでも目をお通し下さい.

---Files--------------------------------
using_define_method_for_Vector_arithmetic.patch (1.29 KB)
using_define_method_for_Scalar_arithmetic.patch (1.04 KB)
using_define_method_for_Matrix__arithmetic.patch (2.04 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-dev:48534] [ruby-trunk - Feature #10059]  [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが
       [not found] <redmine.issue-10059.20140718083020@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2014-07-29 20:21 ` [ruby-dev:48452] [ruby-trunk - Feature #10059] [Feedback] " kosaki.motohiro
@ 2014-09-12  4:26 ` mail
  2014-09-12  5:04 ` [ruby-dev:48535] " ngotogenome
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 7+ messages in thread
From: mail @ 2014-09-12  4:26 UTC (permalink / raw
  To: ruby-dev

Issue #10059 has been updated by gogo tanaka.


Feedbackを頂いたのにも関わらず、見落としておりました.

失礼しました.

Akira Tanaka wrote:
> ふとパッチを見たのですが、これって rdoc で生成されるドキュメントはどうなるのでしょうか。

試みたところ、期待されるモノは生成されませんでした.

rdocの部分を除いても、このfeature自体、見直す余地がありますので一旦取り下げさせて頂きたいと考えております.

蛇足となりますが、`method_define` を用いたメソッドに対するrdocの生成など面白いかもしれませんね.

お騒がせ致しました.


----------------------------------------
Feature #10059:  [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが
https://bugs.ruby-lang.org/issues/10059#change-48864

* Author: gogo tanaka
* Status: Feedback
* Priority: Low
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
タイトルに書きました通り、代数構造を記述する時にメタプログラミングは非常に非常に強力で

保守性や可読性を著しく推し上げます. 著しくです. これは代数的な性質(演算子の対称性、可逆性など)を記述出来る事に起因します.

しかし議論を呼びそうなのと取り分け優先度が高い訳でないので、提案レベルで簡単なPATCHを投げさせて頂きます. お手透きの時にでも目をお通し下さい.

---Files--------------------------------
using_define_method_for_Vector_arithmetic.patch (1.29 KB)
using_define_method_for_Scalar_arithmetic.patch (1.04 KB)
using_define_method_for_Matrix__arithmetic.patch (2.04 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-dev:48535] [ruby-trunk - Feature #10059]  [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが
       [not found] <redmine.issue-10059.20140718083020@ruby-lang.org>
                   ` (3 preceding siblings ...)
  2014-09-12  4:26 ` [ruby-dev:48534] [ruby-trunk - Feature #10059] " mail
@ 2014-09-12  5:04 ` ngotogenome
  2014-09-13 21:21 ` [ruby-dev:48541] " mail
  2014-09-16 11:54 ` [ruby-dev:48552] " ngotogenome
  6 siblings, 0 replies; 7+ messages in thread
From: ngotogenome @ 2014-09-12  5:04 UTC (permalink / raw
  To: ruby-dev

Issue #10059 has been updated by Naohisa Goto.


現在のRDocの挙動では、以下のように、メソッド定義そっくりだが実際には定義されない文を記述しておくと、メソッドは定義されないがRDocには反映されるので、私はそれを活用しています。
ただし、これが本当に正しいのか、単に現在のRDocの挙動に依存しているだけなのか、はわかりません。

~~~
 # このabcdeメソッドの説明文。
 # 説明文続き。
 # 説明文続き。
 def abcde(f="g") end if false
~~~


----------------------------------------
Feature #10059:  [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが
https://bugs.ruby-lang.org/issues/10059#change-48865

* Author: gogo tanaka
* Status: Feedback
* Priority: Low
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
タイトルに書きました通り、代数構造を記述する時にメタプログラミングは非常に非常に強力で

保守性や可読性を著しく推し上げます. 著しくです. これは代数的な性質(演算子の対称性、可逆性など)を記述出来る事に起因します.

しかし議論を呼びそうなのと取り分け優先度が高い訳でないので、提案レベルで簡単なPATCHを投げさせて頂きます. お手透きの時にでも目をお通し下さい.

---Files--------------------------------
using_define_method_for_Vector_arithmetic.patch (1.29 KB)
using_define_method_for_Scalar_arithmetic.patch (1.04 KB)
using_define_method_for_Matrix__arithmetic.patch (2.04 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-dev:48541] [ruby-trunk - Feature #10059]  [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが
       [not found] <redmine.issue-10059.20140718083020@ruby-lang.org>
                   ` (4 preceding siblings ...)
  2014-09-12  5:04 ` [ruby-dev:48535] " ngotogenome
@ 2014-09-13 21:21 ` mail
  2014-09-16 11:54 ` [ruby-dev:48552] " ngotogenome
  6 siblings, 0 replies; 7+ messages in thread
From: mail @ 2014-09-13 21:21 UTC (permalink / raw
  To: ruby-dev

Issue #10059 has been updated by gogo tanaka.


@Naohisa Goto さん

なるほど、そちら面白いですね.

しかし、そちらの場合はむしろドキュメントが生成されない方が好ましい気もしますし

`method_define` を用いた場合は生成されて欲しいです.

(実際に定義されたものを必要十分にドキュメントは生成すべきと考えます)

RDocの方に投げかけてみたいと思います.

ともあれご教授ありがとうございました. 非常によい見地を頂きました.

----------------------------------------
Feature #10059:  [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが
https://bugs.ruby-lang.org/issues/10059#change-48890

* Author: gogo tanaka
* Status: Feedback
* Priority: Low
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
タイトルに書きました通り、代数構造を記述する時にメタプログラミングは非常に非常に強力で

保守性や可読性を著しく推し上げます. 著しくです. これは代数的な性質(演算子の対称性、可逆性など)を記述出来る事に起因します.

しかし議論を呼びそうなのと取り分け優先度が高い訳でないので、提案レベルで簡単なPATCHを投げさせて頂きます. お手透きの時にでも目をお通し下さい.

---Files--------------------------------
using_define_method_for_Vector_arithmetic.patch (1.29 KB)
using_define_method_for_Scalar_arithmetic.patch (1.04 KB)
using_define_method_for_Matrix__arithmetic.patch (2.04 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [ruby-dev:48552] [ruby-trunk - Feature #10059]  [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが
       [not found] <redmine.issue-10059.20140718083020@ruby-lang.org>
                   ` (5 preceding siblings ...)
  2014-09-13 21:21 ` [ruby-dev:48541] " mail
@ 2014-09-16 11:54 ` ngotogenome
  6 siblings, 0 replies; 7+ messages in thread
From: ngotogenome @ 2014-09-16 11:54 UTC (permalink / raw
  To: ruby-dev

Issue #10059 has been updated by Naohisa Goto.


RDocの件について、前述の"def xxx end if false"のように常に偽になるなら話は簡単ですが、極端な場合だと "def xxx end if rand(5)<3" のようにランダムにメソッド定義が発生するコードも可能ですし、さらに rand関数を再定義するのも可能です。

このような場合も考えると、現在のRDocの挙動(defによるメソッド定義に書かれたドキュメントは詳細な条件分岐は見ずに使う)は順当だと思っています。

~~~
# このメソッドのRDocはどうする?
def abcd(e="f") end if rand(5)<3

# rand は常に10を返す関数と定義
def rand(*arg); 10; end

# rand(5)>5 は、普通(Kernel.randが呼ばれる場合)は必ず偽になるが、
# このコンテキストではrandは常に10を返すと定義したので、
# rand(5)>5は常に正になる。
# では、このメソッドのRDocはどうする?
def efgh(i="j") end if rand(5)>5
~~~


----------------------------------------
Feature #10059:  [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが
https://bugs.ruby-lang.org/issues/10059#change-48930

* Author: gogo tanaka
* Status: Feedback
* Priority: Low
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
タイトルに書きました通り、代数構造を記述する時にメタプログラミングは非常に非常に強力で

保守性や可読性を著しく推し上げます. 著しくです. これは代数的な性質(演算子の対称性、可逆性など)を記述出来る事に起因します.

しかし議論を呼びそうなのと取り分け優先度が高い訳でないので、提案レベルで簡単なPATCHを投げさせて頂きます. お手透きの時にでも目をお通し下さい.

---Files--------------------------------
using_define_method_for_Vector_arithmetic.patch (1.29 KB)
using_define_method_for_Scalar_arithmetic.patch (1.04 KB)
using_define_method_for_Matrix__arithmetic.patch (2.04 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-09-16 12:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-10059.20140718083020@ruby-lang.org>
2014-07-18  8:30 ` [ruby-dev:48429] [ruby-trunk - Feature #10059] [Open] [PATCH and SUGGEST] 代数構造を記述する時にメタプログラミングは非常に非常に強力ですが qlli.illb
2014-07-25  8:01 ` [ruby-dev:48448] [ruby-trunk - Feature #10059] " akr
2014-07-29 20:21 ` [ruby-dev:48452] [ruby-trunk - Feature #10059] [Feedback] " kosaki.motohiro
2014-09-12  4:26 ` [ruby-dev:48534] [ruby-trunk - Feature #10059] " mail
2014-09-12  5:04 ` [ruby-dev:48535] " ngotogenome
2014-09-13 21:21 ` [ruby-dev:48541] " mail
2014-09-16 11:54 ` [ruby-dev:48552] " ngotogenome

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 read-only IMAP folder(s) and NNTP newsgroup(s).