bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Suggested change in rendering of ⎕CR


From: Blake McBride
Subject: Re: [Bug-apl] Suggested change in rendering of ⎕CR
Date: Wed, 13 Apr 2016 07:26:43 -0500

Off the cuff, it seems like putting quotes around strings is a really good idea.  How else would you tell the difference between 123 and "123"?

Blake

On Wed, Apr 13, 2016 at 2:34 AM, Elias Mårtenson <address@hidden> wrote:
Given the following _expression_:

      8⎕CR 2 2⍴10 'foo' 20 'bar'
┌→───────┐
↓10 ┌→──┐│
│   │foo││
│   └───┘│
│20 ┌→──┐│
│   │bar││
│   └───┘│
└∊───────┘

The combination of strings and numbers in the array isn't very pretty.

I'd like to suggest that it renders as following instead:

┌→───────┐
↓   ┌→──┐│
│10 │foo││
│   └───┘│
│   ┌→──┐│
│20 │bar││
│   └───┘│
└∊───────┘

I would also like to see another ⎕CR mode that would render it like below, as this would make displaying arrays with lots of strings (in my case, database table content) much easier to read:

┌→───────┐
10 "foo"│
│20 "bar"│
└∊───────┘

Jürgen, what's your opinion on this?

Regards,
Elias


reply via email to

[Prev in Thread] Current Thread [Next in Thread]