From: Yukihiro Matsumoto Date: 2007-08-31T15:43:41+09:00 Subject: Re: Pragmas in Ruby 1.9 Hi, In message "Re: Pragmas in Ruby 1.9" on Fri, 31 Aug 2007 15:35:09 +0900, David Flanagan writes: |However, if we're going to call these magic comments pragmas, then |people will want to be able to define other pragmas in comments. (And |indeed, a framework for accepting pragmas with names other than "coding" |is already in place in parse.y.) This is what has me concerned. If |we're going to have a general pragma facility in the language, I suggest |that it ought to be *part of the language* and not a magic |comment-processing hack. Hmm, reasonable. OK, I will not call these magic comments as pragmas any longer. We will rename internal parser routines as well to remove the term pragma from them. |2) If we need to introduce more general pragmas, I suggest overloading |Kernel.require. It should behave as usual if passed a string. But it |can handle pragmas if passed a hash. Some possible examples (using Ruby |1.9 hash syntax): This is interesting. When we need to introduce pragma in the language, I will come back this idea from you. matz.