bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Possible improvement to ]BOXING


From: Elias Mårtenson
Subject: Re: [Bug-apl] Possible improvement to ]BOXING
Date: Thu, 6 Mar 2014 16:05:52 +0800

You are right of course. Thanks. :-)

Regards,
Elias


On 5 March 2014 02:00, Juergen Sauermann <address@hidden> wrote:
Hi Elias,

I believe it would be more confusing if ⎕CR is sometimes computed and sometimes not.

The example below might be easy to detect but what about cases like Z←8 ⎕CR xxx ◊ Z or
some ⎕CR returned by a function?

/// Jürgen



On 03/04/2014 05:35 AM, Elias Mårtenson wrote:
I love ]BOXING and I'm using it all the time now. It's particularly useful when you're a beginner like myself.

Would it be possible to prevent the application of the default ]BOXING value when explicitly using ⎕CR? Consider this interaction?

      ]BOXING 8
      'foo' 'bar'
┌→──────────┐
│┌→──┐ ┌→──┐│
││foo│ │bar││
│└───┘ └───┘│
└∊──────────┘
      8⎕CR 'foo' 'bar'
┌→────────────┐
↓┌→──────────┐│
││┌→──┐ ┌→──┐││
│││foo│ │bar│││
││└───┘ └───┘││
│└∊──────────┘│
└─────────────┘

Oops... The last one applies 8⎕CR on output that has already been boxed. That can be a bit confusing.

Regards,
Elias



reply via email to

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