ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> language-dev
language-dev
Iterator Syntax
by Glen Starchman other posts by this author
May 3 2002 3:49PM messages near this date
Son cikan videolar | Re: Iterator Syntax
I am working on my language again after a long haitus and have a question for 
the group in regards to readability of my iterator functionality. Currently, 
I am looking at 3 different forms:

1.
"hello".each() 
	{ |x|
		print (x)
	}

2. 
"hello".each()
	begin
		print (x)
	end

3.
"hello".each()
	|x|
		print(x)
	end

I am rather fond of number 3, but am uncertain as to which is the most 
readable for maintainers and intuitive for the developer. 

Any thoughts?
	

-- 
Glen Starchman
Chairman & CEO
The Enabled Technology Group,LLC
m: 206.234.7330
p: glenetg@voicestream.net
Thread:
Glen Starchman
Donal K. Fellows
Glen Starchman
Pixel
Glen Starchman
Buggs
Mathieu Bouchard
Buggs
Mathieu Bouchard
Glen Starchman

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved