I agree with Shannara. PB is already a hybrid language, which is what makes it unique as well as powerful. I think additional C-like features would be great. I just hope that PB always remains a procedure-oriented language. None of that OOP stuff for me.
Another idea would be to officially drop the "Basic" from the title so as not to confuse people (because the language is certainly not a 'pure' form of basic, which is good). The name "Pure" by itself is quite cool.
[Implemented] I miss these features
I second the procedure based language... oop is a waste of overhead.
Well while we are at that, besides the NOT that I truly miss... the other would be...
and variables of type variant and Procedures with optional parameters.. Ex in VB
Well while we are at that, besides the NOT that I truly miss... the other would be...
Code: Select all
myvar=(x=y)?100:200
Code: Select all
Function X(ByVal first as integer, optional ByVal second as integer = 4)
-
- Enthusiast
- Posts: 767
- Joined: Sat Jan 24, 2004 6:56 pm
Akee,
in C the statement:
gets treated by the compiler exactly as the next snippet:
The resultant assembly code will be the same, even for non-optimising compilers. Why use the terse form when the verbose form expresses so much more clearly what the programmer intended?
There's no merit in making PB into a language that merely emulates other well known languages; introducing idiom that can be expressed perfectly with the core language as it is doesn't suit any purpose, other than making (former?) C programmers feel at home.
FYI: I use both C and PB (and a bit of Eiffel). Horses for courses!
in C the statement:
Code: Select all
a = (( x < y) ? x : y ) ;
Code: Select all
if ( x < y)
a = x;
else
a = y;
There's no merit in making PB into a language that merely emulates other well known languages; introducing idiom that can be expressed perfectly with the core language as it is doesn't suit any purpose, other than making (former?) C programmers feel at home.
FYI: I use both C and PB (and a bit of Eiffel). Horses for courses!
dell_jockey wrote:The resultant assembly code will be the same, even for non-optimising compilers. Why use the terse form when the verbose form expresses so much more clearly what the programmer intended?
Yes Sir! I know!

Although there are a few things in c I'd like to see in Pure, I'm soooo glad that Pure is not as cryptic (syntactically speaking) as C/C++ is: This is the reason I use Pure in the first place!
The "flexibility" in C's For/Next loop is trivial, as far as I'm concerned. Pure does a fine job of it. If you need more flexibility in your loops, you can always get creative and write your own in inline asm...
Russell
The "flexibility" in C's For/Next loop is trivial, as far as I'm concerned. Pure does a fine job of it. If you need more flexibility in your loops, you can always get creative and write your own in inline asm...
Russell
*** Diapers and politicians need to be changed...for the same reason! ***
*** Make every vote equal: Abolish the Electoral College ***
*** www.au.org ***
*** Make every vote equal: Abolish the Electoral College ***
*** www.au.org ***