Re: Euphoria 2.5

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

Derek Parnell wrote:
> 
> cklester wrote:
> > I admit I've never really fretted over using s[length(s)]
> 
> And neither have I. Its the much more commonly used ...
> 
>    if A_Very_Long_But_Meaningful_Identifier_Name[
>      length(A_Very_Long_But_Meaningful_Identifier_Name)] = '\n' then
>        A_Very_Long_But_Meaningful_Identifier_Name = 
>           A_Very_Long_But_Meaningful_Identifier_Name[ 1 ..
>             length(A_Very_Long_But_Meaningful_Identifier_Name)- 1]
>    end if
> 
> that I have high hopes for.

Yes, those are the cases for which I see some benefit here.

>    if A_Very_Long_But_Meaningful_Identifier_Name[$] = '\n' then
>        A_Very_Long_But_Meaningful_Identifier_Name = 
>           A_Very_Long_But_Meaningful_Identifier_Name[ 1 .. $-1]
>    end if

Nice, huh? :)

-=ck
"Programming in a state of EUPHORIA."
http://www.cklester.com/euphoria/

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

Search



Quick Links

User menu

Not signed in.

Misc Menu