[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:04040] Re: Pluggable functions and blocks

From: Aleksi Niemel<aleksi.niemela@...>
Date: 2000-07-15 15:50:35 UTC
List: ruby-talk #4040
Dave:
>      unbound = String.instance_method(:gsub)
>      unbound.bind_to("abc").call(/a/, "b") # => "bbc"
> 
> You could then provide the symetrical Method#unbind
> 
>      bound = "abc".method(:gsub)
>      unbound = bound.unbind   # => UnboundMethod
> This all seems to have a clearer semantic, and also allows you to

Seems clearer to me too. I like that already :).

> Anyway, I know what you're doing really. You're just trying to make
> sure that we _never_ get this book finished ;-)

Well, it was actually me who started the poor thread... Maybe matz should
not listen to me for few months. :)

	- Aleksi

In This Thread

Prev Next