bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] box and unbox that work uniformly and without exceptions


From: Elias Mårtenson
Subject: Re: [Bug-apl] box and unbox that work uniformly and without exceptions
Date: Sun, 18 May 2014 12:23:58 +0800

That bring be back to my previous argument that the APL designers made a mistake when they defined 'a' to be a character instead of a single-element array. It's inconsistent, and leads to ugly code where all single-character-strings have to be escaped as such: (,'a'), or as you put it: (1⍴'a') which is the same thing.

Regards,
Elias


On 18 May 2014 12:18, Frederick H. Pitts <address@hidden> wrote:
Blake,

        Thanks for the detailed response.  I understand the issue more clearly
now.

        I think I would ask the user to reshape scalar arguments to vectors
(e.g. (1⍴'k')(1⍴'v')).  But then, that is as onerous as having to
remember to use box everywhere its required.

Regards,

Fred

On Sat, 2014-05-17 at 22:20 -0500, Blake McBride wrote:
> Lastly,
>
>
>       ⍴(box 'abc'),box 'def'
> ┌→┐
> │2│
> └─┘
>
>
> Blake
>
>
>
>
>
>
>





reply via email to

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