My personal wishlist for 2005

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

My personal wishlist for 2005

Post by traumatic »

I know some (if not all) of the following things have already been discussed here.
After all it's just _my_ personal wishlist so I'll go ahead anyway ;)


1) More flexible structures

Code: Select all

StructureUnion
  Structure STRUC_A
    a.f
    b.f
    c.f
    d.f
  EndStructure
  Structure STRUC_B
    a.l
    b.l
    c.l
    d.l
  EndStructure
  Structure STRUC_C
    a.f[2]
    b.f[2]
  EndStructure
EndStructureUnion

2) Multidimensional arrays in structures

Code: Select all

Structure MYSTRUC
  x.l[4][2]
EndStructure

3) Short If:Else:EndIf, eg.

Code: Select all

ProcedureReturn var=42?true:false

4) Being able to write

Code: Select all

var1=var2=var3=var4=42
instead of

Code: Select all

var1=42 : var2=42 : var3=42 : var4=42

5) Unsigned variable types


6) doubles! :)


I know there are workarounds for all of these suggestions but
workarounds almost always reduce readability at a certain point.

Thanks for your attention.
Good programmers don't comment their code. It was hard to write, should be hard to read.
coma
Enthusiast
Enthusiast
Posts: 164
Joined: Fri Aug 15, 2003 3:46 am
Location: Canada

Post by coma »

I stopped waiting for an update of the 3d engine, now I use external dlls for gfx and sound, so my wishlist is almost the same.
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Re: My personal wishlist for 2005

Post by GPI »

Code: Select all

ProcedureReturn var=42?true:false
Why Procedurereturn?

Code: Select all

var1=var2=var3=var4=42

Please not. Bad codedesign. Something like this is only possible, when the equal comparisation and variable set have diffrent chars.
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Re: My personal wishlist for 2005

Post by traumatic »

GPI wrote:

Code: Select all

ProcedureReturn var=42?true:false
Why Procedurereturn?
That's just meant to be an example - there're are better uses for this of course. Or did I get you wrong?

Code: Select all

var1=var2=var3=var4=42

Please not. Bad codedesign. Something like this is only possible, when the equal comparisation and variable set have diffrent chars.
True! (Again) I didn't think of that.
Don't panic, I won't request "==" as a comparison operator :)
Good programmers don't comment their code. It was hard to write, should be hard to read.
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

Post by Dreglor »

changing syntax like that it isn't the best idea...
~Dreglor
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Post by traumatic »

exchange 4) by

4) MACROS

(Don't know how I forgot that ;))
Good programmers don't comment their code. It was hard to write, should be hard to read.
Post Reply