Open Kampfkarren opened 7 years ago
I think we should have an Array
class, similar to PHP's:
$MyArray = new Array(1, 2, 3);
Console.StandardOutputStream >> $MyArray[1] >> Console.Characters.EndLine;
del $MyArray;
Outputs:
2
@alexbuzzbee We should make PyHP++# Pure OOP™ like Java, so there shouldn't be brackets notation...
Console.StandardOutputStream >> disp($myArray->get(1)) >> Console.Characters.EndLine;
...but this doesn't happen in C#. What do you think?
All of our inspiration languages support brackets syntax. I think we should be careful when considering anything that would deviate from the inspiration languages.
Speaking of inspiration languages, I was thinking of renaming this thing to Objective-JPyHPScriptTRANsh++#JIT.NET Business Oriented Query Language 6. That way we could draw from Objective-C, Java, Python, PHP, (Java|Action|Type|Apple)Script, FORTRAN, Bash/Shell, LuaJIT, C++, C#, Visual Basic.NET, COBOL, SQL, and Perl6. 😛
Let's... not...
@alexbuzzbee You don't want a .ojpyhpstranshppsjitnetboql6 file?
No.
rip
How will arrays be done? Will it be like PHP and Python where you just do []? Will it be like C where you put [size]? Will it be like C++ or C# where we have one quadrillion different array types?