Arrays in Programming Languages

The cluster focuses on debates about what constitutes an array versus lists or other structures, array syntax like slicing and indexing, and features or lacks thereof in languages such as PHP, JavaScript, and others.

📉 Falling 0.5x Programming Languages
4,017
Comments
20
Years Active
5
Top Authors
#9270
Topic ID

Activity Over Time

2007
7
2008
34
2009
59
2010
105
2011
228
2012
182
2013
240
2014
213
2015
180
2016
221
2017
198
2018
239
2019
271
2020
299
2021
353
2022
321
2023
321
2024
251
2025
253
2026
42

Keywords

e.g PHP ArrayUtil US console.log JavaScript WTF ARRAYNAME search.cpan mozilla.org array arrays php index eval undefined null function tutorial jq

Sample Comments

pessimizer Apr 7, 2021 View on HN

It's not an array trick, it's a definition of arrays.

msie Jul 25, 2010 View on HN

This isn't your father's Array. Sigh.

tgv Dec 15, 2019 View on HN

That's not "just an array".

aphyr Sep 16, 2011 View on HN

True for arrays. Very wrong for singly-linked lists, as in lisp, haskell, erlang, etc.

TylerE Jul 19, 2011 View on HN

WTF? Array functions as something GOOD about PHP? It doesn't have a slicing syntax for crying out loud!

mathfailure Jun 15, 2024 View on HN

Still no arrays in the standard? GTFO.

abluecloud Dec 19, 2016 View on HN

and yet still doesn't use array dereferencing

laszlokorte Dec 16, 2023 View on HN

They are array languages. If you have never heart of array languages check out the code_report youtube channel.

bumblebird Nov 16, 2009 View on HN

Sure, once it's in the language spec and doesn't use Array hacks.

flukus Nov 24, 2016 View on HN

Was there a reason that array style braces ([]) weren't used?