[Implemented] Better names for some commands

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

[Implemented] Better names for some commands

Post by BackupUser »

Restored from previous forum. Originally posted by Danilo.

From the german forum wishlist.

ElmarBünning´s wish for PureBasic:
Name commands more like other BASICs (quasi-standard).

Code: Select all

LTrim() , RTrim() and Trim()
instead

Code: Select all

StripLead() and StripTrail()

German PureBasic Forum, http://www.Pure-Board.de



Edited by - Danilo on 11 June 2002 06:07:24
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> Name commands more like other BASICs (quasi-standard).
> LTrim() , RTrim() and Trim() instead StripLead() and StripTrail()

I agree here. I always thought it was strange, for example, that PureBasic
has FindString instead of InStr, which is in every other major BASIC.


PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.
which is in every other major BASIC
YES ! So its easier to convert the existing BLOATWARE-Stuff(VB) to Pure.

Its a long way to the top if you wanna .....CodeGuru
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

And all the users will kill me again with previous source compatibility.. Anyway, StripLead() and StripTrail() are badly named and will be rename to LTrim() RTrim() for v3.20.

Fred - AlphaSND
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> all the users will kill me again with previous source compatibility.

They can just search/replace if need be. There's a lot of free apps out there
that can search/replace any text in a folder (and sub-folders) of files, so it's
not really a real big issue, IMO.

Better to "fix" the "wrong" names now, before the newer users posting here start
getting attached to them. And like Rings said, it makes it quicker and easier
to convert Visual Basic code to PureBasic...

PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Trim() will be part of v3.20.

Fred - AlphaSND
Post Reply