A few questions related to PB ide

Working on new editor enhancements?
User avatar
ostapas
Enthusiast
Enthusiast
Posts: 192
Joined: Thu Feb 18, 2010 11:10 pm

A few questions related to PB ide

Post by ostapas »

What I find slightly annoying in PB ide - it seems there is no easy way to make linked lists and maps distinguishable from functions. Tried just simply prefix lists and maps with L_ or M_, e.g. L_mylist.s() but still don't like it. Searched the forum a bit and the easiest workaround (for me) seems to be using a macro for stitching square brackets to maps and lists:

Code: Select all

Macro [
(  
EndMacro

Macro ]
)  
EndMacro

NewList Abc[]
But the macro doesn't seem to work, just getting a syntax error. So the question is, how to fix this macro? Or any other ideas, e.g. how to set different syntax highlighting for lists and maps? Another question - can't find a way to remove all 3D functions from autocomplete list, any ideas? :)
User avatar
skywalk
Addict
Addict
Posts: 3996
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: A few questions related to PB ide

Post by skywalk »

Good questions!
Try dropping some libs or resource files before starting PB IDE?
The Macro problem is partly due to multiline support.

Code: Select all

Macro [  ( ;<-- PB sees a bad name and a missing right parenthesis.
EndMacro
A real problem later on if you were to replace all ()'s with []'s, is you cannot debug anywhere in those lines.
Macros are like invisible to the debugger. You can only step over them.
Compromise: You can distinguish between a Procedure and a list, by looking at the context help in the statusbar.
There will be no parameters for a list or array. :wink:
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
ostapas
Enthusiast
Enthusiast
Posts: 192
Joined: Thu Feb 18, 2010 11:10 pm

Re: A few questions related to PB ide

Post by ostapas »

Try dropping some libs or resource files before starting PB IDE?
Thanks, removing all 3d stuff from PureLibraries folder helps(but not really an elegant solution :) )
Compromise: You can distinguish between a Procedure and a list, by looking at the context help in the statusbar.
Yes, but it still doesn't improve code readability (
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: A few questions related to PB ide

Post by uwekel »

+1
And for arrays as well.
It's not basic like, but similar to Python language and more readable.
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Post Reply