PyHP_pph icon indicating copy to clipboard operation
PyHP_pph copied to clipboard

Arrays

Open Kampfkarren opened this issue 8 years ago • 8 comments

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?

Kampfkarren avatar Jun 18 '17 07:06 Kampfkarren

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

ghost avatar Jun 22 '17 19:06 ghost

@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?

as-com avatar Jun 22 '17 19:06 as-com

All of our inspiration languages support brackets syntax. I think we should be careful when considering anything that would deviate from the inspiration languages.

ghost avatar Jun 22 '17 20:06 ghost

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. 😛

as-com avatar Jun 22 '17 20:06 as-com

Let's... not...

ghost avatar Jun 22 '17 20:06 ghost

@alexbuzzbee You don't want a .ojpyhpstranshppsjitnetboql6 file?

Kampfkarren avatar Jun 22 '17 20:06 Kampfkarren

No.

ghost avatar Jun 22 '17 22:06 ghost

rip

ChemtrailPilot12 avatar Mar 24 '19 21:03 ChemtrailPilot12