|
From: | Juergen Sauermann |
Subject: | Re: [Bug-apl] ⎕FIO[49] |
Date: | Wed, 25 Jan 2017 12:57:45 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Hi, there is nothing wrong with ⎕ReadLines as such. However, - if I remember correctly then in the 70s APL was very much loved by programmers that were not speaking English every day, in particular in France and Canada. - Every new ⎕ function requires quite some coding. The C-code that implements it has typically only a few lines because the function itself is normally already implemented somewhere in libstdio. Suppose you already have the implementation in, say, { CODE }. Then making { CODE } available as, say, ⎕FIO[N] is currently simply a new case clause: case N: { CODE } For ⎕ReadLines instead fo ⎕FIO[N] you would need far more changes: - a new Id for it, - a new Token for it, - a new class, say Quad_ReadLines around { CODE }. That also means two more source code files and therefore impacts in src/Makefile.am and SVN - write testcases for it, - write a )HELP entry - write documentation for it I am normally planning 3 days of (part-time) work for one new Quad Function. This would be 3×49 days for converting ⎕FIO into different ⎕something functions. And after that, you would have a good argument to ask why, for example ⎕CR or ⎕SQL are using numbers instead of names. So this is half a year of work on my side compared to a simple )COPY 5 FILE_IO where named wrapper functions for every ⎕FIO[X] already exist (and you can even change the names if you don't like them). /// Jürgen On 01/25/2017 05:54 AM, Elias Mårtenson
wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |