|
Welcome to the Web Hosting Forum - Hosting Reviews, Web Hosting Discussion Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content etc. By registering you have access to many other special features, Like personal blogs, your own personal forum, extended profiles, posting of your resume, free links, photo galleries, auctions etc. We are Web 2.0 Compliant . We also reward our posters and referals with free hosting, domains, prizes etc. Even earn points for reading posts. We offer contests, and events that are sure to please anyone in the hosting industry, web developer or SEO at heart. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|
|||||||
| Ruby On Rails Discuss Ruby and its components |
|
|
LinkBack | Thread Tools |
|
|||
|
Proc vs lambda vs proc
Hi group(and probably ruby-talk list - is it running btw?).
I got a question on Proc.new and lambda { ... }. AFAIK, there's two differences between Proc.new(=proc) and lambda. The first one is that Proc.new does not check the number of arguments passed to it while lambda does. The secondis that lambda returns as we expect, i.e., it returns value, while Proc.new does not. Though Proc.new lacks several advantages that lambda has, I guess there might be some situation where Proc.new is more suitable than lambda. As an example, some code blocks that have to executed thousands times might run more faster than lambda because it does not have to check the # of arguments, thereby decreasing computational overhead. What is your opinion? Sincerely, Minkoo Seo |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Calling a Proc From a Proc | Trevor Bishop | MSSQL | 4 | 01-10-2007 09:05 AM |
| chroot and mount -t proc | Peter | Gentoo | 1 | 01-04-2007 05:52 AM |
| chroot and mount -t proc | Peter | Gentoo | 3 | 01-04-2007 05:04 AM |
| chroot and mount -t proc | Peter | Gentoo | 3 | 01-04-2007 04:53 AM |
| chroot and mount -t proc | Peter | Gentoo | 3 | 01-04-2007 04:42 AM |
All times are GMT -5. The time now is 09:07 PM.