[#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:03967] Re: Are named formal parameters in recent r uby interpreters?

From: Aleksi Niemel<aleksi.niemela@...>
Date: 2000-07-13 11:34:50 UTC
List: ruby-talk #3967
> R> X.new('file' => filename)
> 
>  this is the same than :
> 
>   X.new( { 'file' => filename } )

Isn't it even more. The named vars (maybe have to be in the end and) are
collected into a hash which is passed to a subroutine as a last parameter.
(That is last before optional block, I think). But don't trust me here, I'm
just guessing things.

	- Aleksi

In This Thread

Prev Next