Change \ with .

Got an idea for enhancing PureBasic? New command(s) you'd like to see?

SHOULD THE \ GO AWAY AND THE . RULE ?

GIVE ME THE DOT, PB IS GROWN UP NOW!
18
17%
GIVE ME THE DOT, PB IS GROWN UP NOW!
18
17%
REALLY DON'T CARE...
14
13%
REALLY DON'T CARE...
14
13%
LIKE IT AS IT IS - WITH THE BACKSLASH...
22
20%
LIKE IT AS IT IS - WITH THE BACKSLASH...
22
20%
 
Total votes: 108

freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

Karbon wrote:And some oversimplify them. Saying that changing \ to . wouldn't break anything is just plain wrong. Doing so would break nearly every line of code that a variable is used in (the dot is used in declaring and accessing variables).

While there have been releases that break backward compatibility before (3.90 was a big one) that was to add significant functionality. This is merely a cosmetic change to make PB "more like" other languages for no other reason than mimicry. If we were talking about adding some significant feature to PB then breaking old code might be an option - but we aren't.

There is no reason (good or bad) to change \ to . other than to mimic VB or some other language - and that reason is no reason at all.

Having said all that - it is a perfectly valid feature request :-)
Hugh!!! Triple-FullACK

For conveniently converting C or VB Code to PB, some people invented the search and replace functionality in the editor of your choice.
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Post by fsw »

Karbon wrote: ...Having said all that - it is a perfectly valid feature request :-)
:D
User avatar
fsw
Addict
Addict
Posts: 1603
Joined: Tue Apr 29, 2003 9:18 pm
Location: North by Northwest

Post by fsw »

freedimension wrote:
For conveniently converting C or VB Code to PB, some people invented the search and replace functionality in the editor of your choice.
The same can be said with changing '\' with '.' in old pb code. :wink:
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

Maybe... How about classes and object inheritance? How about a dozen other things that would improve the language?
OOP to improve the language? This is one hell of a hot potato to drop in this mix. :? I personally don't agree that OOP would improve PB but in other languages such as Python it makes sense since everything in Python is an object.
--Kale

Image
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

fsw wrote:
freedimension wrote:
For conveniently converting C or VB Code to PB, some people invented the search and replace functionality in the editor of your choice.
The same can be said with changing '\' with '.' in old pb code. :wink:
Yes, but I see no reason why I should. I wrote my Code for PB, and PB expected it like this. If you have C- or VB-Code, nobody forces you to convert it to PB. Got my Point?
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

Maybe... How about classes and object inheritance? How about a dozen other things that would improve the language? How about sticking to the issue at hand?
My point is with the comments such as "like other programming languages" and "PB is grown up now." There are regular threads that say 'I want PB to be just like every other language'.

If every other language got it right, then why would I have settled on PB?

If this approach was taken, grabbing every feature from every other language PB would quickly morph into a fat, bloated language like all the others.

You ask for class and object inheritance. If these are introduced then how should resources be handled? Will a garbage collector be required? That will add a huge overhead to your executables.

At the moment PB only includes the functions that I use within the executable. That is why the executable is so small. As soon as you bring in inheritance the ancestor classes start linking in functions I'm not using.

To get around this you have to make the compiler much much more complicated. Full dead code analysis is needed.

All the other langauges became fat and bloated for good resson. As soon as you take a certain path, the implications cascade until your language is like every other.

The command line option is another good example. One of the things I value so hightly about PB is that even the compliated code postings on this forums can be pasted into my Editor and run, no trouble.

As soon as you start adding command line options, then I lose this. Some people post code with dots and others with slashes. I can't just cut and paste, I have to check which one they are using.

It may seem like a small thing, but my tolerance for hassle is low. I've moved on from many other languages and if PB starts to waste my time like this I'll move on again.

There is no other language like PB. I would like other languages to be more like PB, but I don't want PB to be like every other language.
User avatar
Inner
PureBasic Expert
PureBasic Expert
Posts: 714
Joined: Fri Apr 25, 2003 4:47 pm
Location: New Zealand

Post by Inner »

Easy fix;

#MACRO \ AS .

At the top of code.

can't remember the posters name now but, _ for end of line on a single line of code spread over many is absolutely stuppid, did the programmer ever hear of $0D,$0A ?
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

One of the things I value so hightly about PB is that even the compliated code postings on this forums can be pasted into my Editor and run, no trouble. As soon as you start adding command line options, then I lose this.
This is my fear when macros are introduced. :?
--Kale

Image
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

Easy fix;

#MACRO \ AS .
Exactly my point. One fix leads to another leads to another.

All of this will add what functionality?
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Come on guys, do you really think this change will happen?
I don't think so.

Timo
quidquid Latine dictum sit altum videtur
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

I sure hope it doesn't!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
oldefoxx
Enthusiast
Enthusiast
Posts: 532
Joined: Fri Jul 25, 2003 11:24 pm

Post by oldefoxx »

Relax. The suggestion was made. It was countered. The problems with
doing it were discussed. It was even voted on by a poll, although that has
no significance at all (compiler design and implementation is not a subject
of popular opinion or dispute, but designer preference). And its been
talked to death. So let's move on.
has-been wanna-be (You may not agree with what I say, but it will make you think).
User avatar
Inner
PureBasic Expert
PureBasic Expert
Posts: 714
Joined: Fri Apr 25, 2003 4:47 pm
Location: New Zealand

Post by Inner »

Why are you scared of macros there good things, not just for changing how things about how a compiler see a \ rather than a .

I've never liked \ personally, frankly it shouldn't be even . it should be "->" or but no need to complain really \ works for the most part all be it looking a little bizzare.
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

Inner,
\
Is just one character that is easily accessible. It is used to traverse file hierarchies, so why is it not suitable for structure hierarchies?
->
is two characters, one of which requires the shift key. How on earth is that better?
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

GedB wrote:Inner,
\
Is just one character that is easily accessible. It is used to traverse file hierarchies, so why is it not suitable for structure hierarchies?
->
is two characters, one of which requires the shift key. How on earth is that better?
I agree, \ is better than ->

so lets keep it at \

but thats not a reason to be angry...
Locked