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