Richard Quadling wrote: > I'm sure I've asked this before, but I can't remember. > > Is there any benefit in using named functions over anonymous functions > for something like this ...
If the function is ever going to be used in more than 1 place then use a named function. For anything else it's probably just easier, more compact and more readable to use an anonymous function. Obviously if it get's too large readability suffers. But it's usually just a matter of opinion. -- Michael Peters Developer Plus Three, LP --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
