Re: Just a little question before 4.0 will be released

new topic     » goto parent     » topic index » view thread      » older message » newer message
jeremy said...
if idx = 2 then 
    idx = idx + 25 
    output = #/ 
        #Dear Mr. John Doe, 
        # 
        #I am very happy for your support 
        # 
        #Mr. Jeff Doe 
        #/ 
else 
    .... more .... 
end if 

So, if the string starts with the magic hash, then all white space preceeding it is stripped. Maybe it could be the magic character that you choose:

Jeremy

Suppose we combine these ideas: Use the /@ (or whatever) once and its location determines how far whitespace will be striped to:

sequence c_code = /@if ( strcmp( "foo", "bar" ) == 1 ) { 
                       printf("strcmp works correctly."); 
                  } 
@/ 
-- c_code is "if ( strcmp( \"foo\", \"bar\" ) == 1 ) {\n\tprintf(\"strcmp works correctly.\");\n}\n" 

I don't think it is nice to require a line continuation symbol for this kind of quoting. However, it is good to allow the programmer to put whitespace for readability.

Shawn

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

Search



Quick Links

User menu

Not signed in.

Misc Menu