Sign in to follow this  
Followers 0
Richard Robertson

Array indexer characters []

2 posts in this topic

We've got the BASIC syntax everywhere, except in the indexer characters. BASIC uses parenthesis and C/C++/C#/etc uses the brackets. What happened there?

Array[0] = {error for basic, array subscript one for AutoIt}

Array(0) = {array subscript one for BASIC, Func Array($arg) for AutoIt}

What happened there?

Share this post


Link to post
Share on other sites



We've got the BASIC syntax everywhere, except in the indexer characters. BASIC uses parenthesis and C/C++/C#/etc uses the brackets. What happened there?

Array[0] = {error for basic, array subscript one for AutoIt}

Array(0) = {array subscript one for BASIC, Func Array($arg) for AutoIt}

What happened there?

i think it's because only the front end of the language that we're using is syntaxually like basic, the workhorse behind the abstraction is still c++ which if i'm not mistaken uses [] instead of (). it is also probably easier for the compiler to parse that way, because parentheses will always mean a function call, and brackets will always mean a subscript. Personally i like having them different because it helps make code more readable even to the human eye.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0