It is currently Sun May 26, 2013 7:58 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: EndWhile
PostPosted: Tue May 01, 2012 11:14 pm 
Offline
Addict
Addict

Joined: Tue Feb 22, 2011 1:16 pm
Posts: 1462
Tenaja wrote:
When someone has a feature request that they feel important enough to post, and others rant about how lame the request is, it is very annoying. Especially when it is a backwards-compatible request that does not force a change upon people.

Changing "Wend" to "EndWhile" is backwards-compatible and doesn't force change? :shock: Of course it forces change. It means we'd ALL have to change our source codes because of the personal preference of one other single person. That's a good thing? No way.

As for such requests being annoying, then perhaps people shouldn't request stuff that is going to directly affect everyone else negatively. Changing core keywords because you don't like them is not a trivial thing. It's a major change to the language.

_________________
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!


Top
 Profile  
 
 Post subject: Re: EndWhile
PostPosted: Tue May 01, 2012 11:40 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Mar 24, 2004 11:04 pm
Posts: 761
Location: Seattle, USA
MachineCode wrote:
Changing "Wend" to "EndWhile" is backwards-compatible and doesn't force change? :shock: Of course it forces change. It means we'd ALL have to change our source codes because of the personal preference of one other single person. That's a good thing? No way.

As for such requests being annoying, then perhaps people shouldn't request stuff that is going to directly affect everyone else negatively. Changing core keywords because you don't like them is not a trivial thing. It's a major change to the language.


Please go back and carefully re-read my post:
USCode wrote:
I'm not saying replace Wend, as it's already very well entrenched and in the BASIC tradition, but also allow EndWhile to be used to end a While loop as well.


Tough crowd around here! :wink:

_________________
Win7 x64, PB x86


Top
 Profile  
 
 Post subject: Re: EndWhile
PostPosted: Tue May 01, 2012 11:55 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Nov 09, 2010 10:15 pm
Posts: 794
Very first Line of This Thread wrote:
For improved consistency, please consider adding EndWhile as a keyword to end a While loop.


...he didn't request a replacement for wend.


Top
 Profile  
 
 Post subject: Re: EndWhile
PostPosted: Wed May 02, 2012 10:04 am 
Offline
Addict
Addict

Joined: Tue Feb 22, 2011 1:16 pm
Posts: 1462
I stand corrected. But if you don't want a replacement, then what's so bad about using your own macro?

_________________
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!


Top
 Profile  
 
 Post subject: Re: EndWhile
PostPosted: Wed May 02, 2012 1:54 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Nov 13, 2007 12:42 pm
Posts: 1307
Location: Manchester, UK
There is nothing wrong with using your own macro, just like there is nothing wrong with doing a CompilerIf for defining the correct New Line string for each OS.

The point is when you keep having to do it for every major and minor app, you have to ask - why can't it be built in?

Perhaps, another method would be a "pre-pender" in that you can add in all your own common Macros and CompilerIf statements and gets pulled in by the compiler each time.


Top
 Profile  
 
 Post subject: Re: EndWhile
PostPosted: Wed May 02, 2012 2:03 pm 
Offline
Addict
Addict

Joined: Tue Feb 22, 2011 1:16 pm
Posts: 1462
Foz wrote:
The point is when you keep having to do it for every major and minor app, you have to ask - why can't it be built in?

Macros can be made part of a custom "Residents" file, so that they become part of the language set in the background and you don't need to type them in to every source. Problem solved! :)

_________________
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!


Top
 Profile  
 
 Post subject: Re: EndWhile
PostPosted: Wed May 02, 2012 2:51 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Jul 25, 2005 3:51 pm
Posts: 2401
Location: Utah, USA
Foz wrote:
There is nothing wrong with using your own macro, just like there is nothing wrong with doing a CompilerIf for defining the correct New Line string for each OS.

The point is when you keep having to do it for every major and minor app, you have to ask - why can't it be built in?

Perhaps, another method would be a "pre-pender" in that you can add in all your own common Macros and CompilerIf statements and gets pulled in by the compiler each time.


jaPBe allows aliases for commands. It can be set up so that when you type 'endwhile' it replaces it immediately with 'Wend'.

Not quite the same thing but useful to know.

_________________
Image


Top
 Profile  
 
 Post subject: Re: EndWhile
PostPosted: Wed May 02, 2012 4:50 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue Nov 09, 2010 10:15 pm
Posts: 794
MachineCode wrote:
Macros can be made part of a custom "Residents" file, so that they become part of the language set in the background and you don't need to type them in to every source. Problem solved! :)

...Until you paste that code into the forum and it causes errors for everyone else.

I like the idea, if it weren't for that. Perhaps an automatically generated header, and you can just insert an include file.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye