[#688] mkmf.rb - add files to clean and distclean targets — Michal Rokos <michal@...>

Hi,

25 messages 2003/01/15
[#722] Re: [RFC] mkmf.rb - add files to clean and distclean targets — Mathieu Bouchard <matju@...> 2003/01/20

On Thu, 16 Jan 2003, Michal Rokos wrote:

[#740] Re: [RFC] mkmf.rb - add files to clean and distclean targets — matz@... (Yukihiro Matsumoto) 2003/01/21

Hi,

[#724] Symbols: More Functionality Wanted — Ryan Pavlik <rpav@...>

I've been discussing this for a bit on #ruby-lang on OPN (or freenode or

23 messages 2003/01/20
[#728] Re: Symbols: More Functionality Wanted — matz@... (Yukihiro Matsumoto) 2003/01/20

Hi,

[#743] Re: Symbols: More Functionality Wanted — "Pit Capitain" <pit@...> 2003/01/21

On 20 Jan 2003 at 15:49, Yukihiro Matsumoto wrote:

[#767] Re: Symbols: More Functionality Wanted — Mathieu Bouchard <matju@...> 2003/01/22

[#768] Re: Symbols: More Functionality Wanted — dblack@... 2003/01/22

Hi --

[#779] Re: Symbols: More Functionality Wanted — Gavin Sinclair <gsinclair@...> 2003/01/23

On Thursday, January 23, 2003, 6:28:04 AM, dblack wrote:

Re: Symbols: More Functionality Wanted

From: Matt Armstrong <matt@...>
Date: 2003-01-23 17:14:48 UTC
List: ruby-core #780
Gavin Sinclair <gsinclair@soyabean.com.au> writes:

> On Thursday, January 23, 2003, 6:28:04 AM, dblack wrote:
>
>> Binding#bind doesn't sound right to me.  I would say either:
>
>>   - bind a symbol to a value, or
>>   - add a symbol to a binding
>
>> but not "bind a symbol to a binding."  At least, that's what my
>> language sense tells me.
>
>> Binding#add, maybe?
>
> Binding#add doesn't sound right if the symbol you're binding already
> has a binding.

The problem is that Binding is the wrong name for the class.  A
variable binding associates a variable with a value, but the Binding
class represents a collection of bindings.  E.g. this seems right:

    Binding.new(symbol, value)

I.e. create a single binding of a symbol to a value.  Typically a
collection of bindings is called a Environment or Context.

    Environment#bind(symbol, value)

makes more sense.

In This Thread