“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
Kaeru Gaman wrote:but it's a matter of taste...
I'm used to the Chr() thingy from C64 on, for 25 years now, so there is no need for me to work with escaped strings.
and a matter of time,
Chr() + "Hello" + Chr() is longer than ""Hello""
I know we love PureBASIC for its easyness and simplicity but that doesn't mean it should stay in the dark ages of programming. If there was the ternary operator too that would be a nice addition.
I vote for Chr() : it's named PureBASIC and IMHO, the syntax must be "Basic". BTW, I wonder... is Chr() compiled as a call to a function or does the compiler simply insert that character, Chr() is refering to ?
moogle wrote:I know we love PureBASIC for its easyness and simplicity but that doesn't mean it should stay in the dark ages of programming.
Yeah, we stay in the "dark ages of programming" because of Chr(). :roll:
Did I say Chr()? I'm talking about other stuff like
ternary evaluation ? true : false
""Hello""
I'm replying to the response of I've been using Chr() for years why would I want to use any easier option. Escaping Strings doesn't replace Chr() it just makes some other aspects of coding easier. I know know you'll all come down hard on me for suggesting to make it a little bit better because if it's not BASIC to you guys its a pos right?
moogle wrote:Chr() + "Hello" + Chr() is longer than ""Hello""
did I say thats what holds purebasic in the dark ages? whats the matter you make a point but forget you said it?
Fluid Byte wrote:
Yeah, we stay in the "dark ages of programming" because of Chr(). :roll:
Go show me where I specifically mention because of the Chr() function PureBasic stays in the dark ages. I implore you to show me that :roll:
I mean it's probably not your fault if you misunderstood seeing as English is probably not your mother tongue.
Kaeru Gaman wrote:but it's a matter of taste...
I'm used to the Chr() thingy from C64 on, for 25 years now, so there is no need for me to work with escaped strings.
and a matter of time,
Chr() + "Hello" + Chr() is longer than ""Hello""
I know we love PureBASIC for its easyness and simplicity but that doesn't mean it should stay in the dark ages of programming. If there was the ternary operator too that would be a nice addition.
They look the same ! (" is a preset constant so you have to ignore the setup line in the comparison).
On a more serious note, I would like some of the other features you mentioned as well. All in good time. They would be useful in using code that originated in other languages that use those features.
I don't think PureBasic is in the dark ages with respect to anything really. But there is a healthy list of personal favorites on the wish list of features that could be added or improved.
Demivec wrote:I don't think PureBasic is in the dark ages with respect to anything really. But there is a healthy list of personal favorites on the wish list of features that could be added or improved.
I know I know I didn't actually mean it is in the dark ages. I was referring to the attitude of "I've been using this for years I wouldn't want to do it an easier or better way". I'm not forcing it like Hey upgrade your coding standards or anything. I wish there was a choice too. I'm not that old to have had the chance to use C64 or Amiga and such hence why I prefer newer styles. At least you had the brains to post something constructive anyway unlike one other being on this forum. :roll:
He still hasn't shown me where I specifically point out that Chr() is dark age. Can't can you? Had to be that idiot to try and ridicule me for wanting a few features. You should be proud.
Personally, I'm not a fan of escape characters in strings. I often see problems with ansi C programs (often connecting from unix) connecting to windows servers and things like domain\username authentication fails, then they manually hardcode a domain\\username into their conf files to deal with this some other catch spits the dummy in their code.
It might be convenient for a programmer to type a little less but I think that the time is sometimes lost with interest due to issues later and support time. I have no evidence that this happens a lot but I see it sometimes from the sysadmin side and so I'd not use it in my code if it were available
But then, null string termination pisses me off so perhaps I'm a bit wierd
Paul Dwyer
“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein