Re: Minimalism and Euphoria

new topic     » goto parent     » topic index » view thread      » older message » newer message
ChrisB said...

Hi

so you would like to replace

for I = 1 to 100 do 
      Do stuff 
end for 

With

I = 1 
while 1 do 
     Do stuff 
     I += 1 (or other) 
     If I = 100 then exit end if 
end while 

rather than giving people the choice?

Doesn't seemto enhance the language.

Chris

I was playing a kind of devil's advocate here in asking whether we should get rid of 'for'. Sometimes it is better to describe what one is advocating instead of arguing against it. A minimal language would be a an aseembler of a virtual computer of the following type OISC : [http://en.wikipedia.org/wiki/One_instruction_set_computer]. In this link you can download one. There are some emulators at the end of the web page.

SDPringle

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu