RE: Why 'for', not 'from' ?
- Posted by Al Getz <Xaxo at aol.com> Jun 03, 2003
- 370 views
Hi again, Igor Kachan wrote: > > > Hello Al: > > > --compare: > > > > for our container that is going to hold 1 to 10 different objects > > --sounds ok > > > > from our container that is going to hold 1 to 10 different objects > > --sounds like we are going to take something out of it. > > Why out? > Because 'from' makes the sentence less clear then 'for'. Granted, there are some cases where from and for can be used interchangeably Find the integral of y with respect to x for x=1 to 20 Take the integral of y with respect to x from x=1 to 20 However if you arent specifing a range, find the integral of y with respect to x at x=2 find the integral of y with respect to x for x=2 now lets try 'from' find the integral of y with respect to x from x=2 >From doesnt work here. In other words, it sounds like you are trying to replace the word 'from' with the word 'after'. In any case, if you replace all your file's 'for' keywords with the keyword 'from' you will have to also modify any prewritten libraries you choose to use, unless you write them all yourself or make a translator. You would run into hits on both 'for' and 'from': --prewritten: global function from(integer a) for x=a to 100 do Something() end for return 1 end function BTW, I'm having pretty good luck with 'for' these days because 'for' is used in every programming language i currently use Take care for now, Al PS. I've also seen "Let x=1 to 10" which makes the most sense. I guess if you really wanted to, you could leave off the leading word completely: x=1 to 10 { Write("Hi there") } This was my preference years ago when storage space was a scarce commodity.