View Single Post
Old 23 August 2015, 12:25   #298
Dunny
Registered User

Dunny's Avatar
 
Join Date: Aug 2006
Location: Scunthorpe/United Kingdom
Posts: 864
That's why I use the square brackets.

"FOR i IN a" is pretty bad syntax for a BASIC - it's very non-obvious what it does unless you specify that "a" is a range somehow. The same way we differentiate strings from numbers with the "$" suffix. Hence I would use "FOR i IN [a]" to specify a range, which is more readable so long as the user understands that anything in square braces is a range.

D.
Dunny is offline  
 
Page generated in 0.05619 seconds with 9 queries