2d arrays

3 views
Skip to first unread message

Raoul Duke

unread,
Aug 29, 2025, 9:10:04 PMAug 29
to pi...@googlegroups.com
most day-job programming languages utterly fail at 2d array syntax, it
seems to me.

in 2025.

still.

wtf?

Mike Austin

unread,
Sep 18, 2025, 4:14:45 PMSep 18
to PiLuD
Just too many brackets? I mean you can line things up but it's manual. A 2D array formatter would be nice.

Now 3D, ND is where is really becomes hard to visualize.

Raoul Duke

unread,
Sep 18, 2025, 5:10:35 PMSep 18
to pi...@googlegroups.com
you cannot even inline create a 2d array in python. just hysterically bad news. let alone row vs. column syntax confusion in most languages. the syntax is not natural. makes one pine for Mathematica :-) 


David Barbour

unread,
Sep 19, 2025, 11:03:43 AMSep 19
to pi...@googlegroups.com
I'm not sure what you mean by this? Why not: 

 [[1,2,3],
  [4,5,6],
  [7,8,9]]

On Thu, Sep 18, 2025 at 4:10 PM Raoul Duke <rao...@gmail.com> wrote:
you cannot even inline create a 2d array in python. just hysterically bad news. let alone row vs. column syntax confusion in most languages. the syntax is not natural. makes one pine for Mathematica :-) 


--
You received this message because you are subscribed to the Google Groups "PiLuD" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pilud+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pilud/CAJ7XQb45xWvVW5vicCADzVb%3DOgi_JdMLug96A-rm5UOOuow5LA%40mail.gmail.com.

Raoul Duke

unread,
Sep 19, 2025, 1:09:07 PMSep 19
to pi...@googlegroups.com
yes, i am terribly incorrect. i haven't done 2d lists in python before and when i asked the llm it gave me list comprehensions that were bad ugly. so clearly i'm the dummy for believing the llm at all and having suspended my own minimal critical thinking. Ça me fait soupirer. 

Raoul Duke

unread,
Sep 19, 2025, 1:11:22 PMSep 19
to pi...@googlegroups.com
but, yeah, i find the 2d array syntax to be painful, the limits of ascii are terrible. anything vaguely complex like a 2d array should really be automagically always kept formatted for human readability, so something more like mathematica. 
Reply all
Reply to author
Forward
0 new messages