Page 2 of 2
Re: Allow use of [] for lists and arrays
Posted: Wed Jan 14, 2009 6:48 pm
by Captn. Jinguji
milan1612 wrote:gnozal wrote:AND51 wrote:I don't like to use AltGr everytime I want to type the name of an array or list, Shift is better.
+1
Same on french keyboards, probably on most non english keyboards ?
That's why I bought a US layout keyboard, it's less hassle to enter
the German Umlauts by typing in a combination of keys once
in a while than to ruin your wrist over the time with AltGr + ...
+1 to the request btw...
Ye olde STRG+ALT 9 key trick still worketh

Re: Allow use of [] for lists and arrays
Posted: Wed Jan 14, 2009 7:44 pm
by AND51
milan1612 wrote:gnozal wrote:AND51 wrote:I don't like to use AltGr everytime I want to type the name of an array or list, Shift is better.
+1
Same on french keyboards, probably on most non english keyboards ?
That's why I bought a US layout keyboard
You cannot expect people to change their keyboard layout or buy a new keyboard only to cope with [ and ]. But I just assume, this idea was kinda joke...

Posted: Wed Jan 14, 2009 9:27 pm
by Thalius
hmmm....
Code: Select all
Structure bar
a.l
foo.l[10]
EndStructure
NewList foo.bar[]
AddElement(foo())
foo[]\foo[2] = 5
Debug foo[]\foo[1]
Debug foo[]\foo[2]
Posted: Thu Jan 15, 2009 2:02 am
by pdwyer
-1
Just MHO
I use [] for pointer arrays stepping though memory blocks. I see the square brackets and know I'm working with raw memory and not PB structured arrays.
Going back to "What problem are we trying so solve" it looks like the issue is when there is nesting, arrays in functions etc then the level of curved brackets becomes ambiguous. An alternative solution would be to have the IDE colour code curved bracked at matching depth
MyProc(Left(MyArray(1),1))
Which could be customised as per other colouring preferences in the IDE.
my 2 yen
Posted: Thu Jan 15, 2009 2:19 am
by Kaeru Gaman
nested colouring would eat up a lot of editor's performance, I would suspect.
I'm happy with getting both brackets highlighted in blue when the cursor is on one of them,
resp. get the one highlighted in red when there is no match.
btw... is there a function to jump to the corresponting command,
e.g. jumping from the EndIf to the If by just one keypress?
Posted: Thu Jan 15, 2009 2:20 am
by pdwyer
Maybe these things could be toggled then.
I'm just thinking out loud though
Posted: Thu Jan 15, 2009 2:29 am
by Kaeru Gaman
> I'm just thinking out loud though
you're not in public I hope?
else they may call you "crazy-gaijin-who-talks-to-his-computer-in-the-morning"...
Posted: Thu Jan 15, 2009 6:33 am
by pdwyer
I'm used to being called a crazy gaijin for whatever reason, pretty soon 1/3rd of my life will have been living here. better the bad mouthing come to me than go to my family if I was back in AU

Posted: Fri Jan 16, 2009 8:31 am
by blueznl
Gajin... you're in Asia? China or Japan or something? Ah, I see, Japan...
Good stuff, always had a soft spot for Asia, but never found a good job there, except for a one year stay in China.
Posted: Sat Jan 17, 2009 7:42 pm
by Mistrel
Having () and [] be interchangeable would in my opinion decrease code readability. I don't think this is really necessary.