bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Package metadata format


From: Juergen Sauermann
Subject: Re: [Bug-apl] Package metadata format
Date: Mon, 04 Aug 2014 15:06:28 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi Elias,

I believe so. For my taste there are to many [axes] which should be ⎕IO+'ed to be portable.
How about this instead:

      { ⊃1,((⊂⍺)≡¨ ,0 ¯1↓⍵)⌿⍵ }

/// Jürgen


On 08/03/2014 05:55 PM, Elias Mårtenson wrote:
I wrote this function to print the value(s) of a given field:

      { (((⍺[;⎕IO]) ≡¨ ⊂⍵) /[1] ⍺)[;2] }

Could it be improved?

Regards,
Elias


On 3 August 2014 23:45, Juergen Sauermann <address@hidden> wrote:
Hi Elias,

looks good!

/// Jürgen



On 08/03/2014 05:22 PM, Elias Mårtenson wrote:


On 3 August 2014 21:29, Juergen Sauermann <address@hidden> wrote:
Hi Elias,

yes, your's looks better, I will change that.
Lets call the function Z←package⍙metadata.

/// Jürgen



On 08/02/2014 05:50 PM, Elias Mårtenson wrote:
After implementing the metadata functions nnn⍙Provides, nnn⍙Requires, etc, I feel that we should change this slightly.

I find the that multitude of functions to support this tend to pollute the output of )FNS quite a bit. It's also somewhat inflexible in that it requires you to add even more functions as new features are added to the package system.

How about we change this so that only one function is used, for example nnn⍙package_metadata or something like that? The name matters less, but the point is that it's only a single function.

I find this to be a lot cleaner.

As an example, for SQL, the content would be:

      8⎕CR SQL⍙package_metadata
┌→─────────────────────────────────────────────────┐
↓┌→─────┐   ┌→──────────────┐                      │
││Author│   │Elias Mårtenson│                      │
│└──────┘   └───────────────┘                      │
│┌→───────┐ ┌→──────────────┐                      │
││BugEmail│ │address@hidden│                      │
│└────────┘ └───────────────┘                      │
│┌→───────┐ ┌→────────────────────────────────────┐│
││Download│ │https://github.com/lokedhs/apl-sqlite││
│└────────┘ └─────────────────────────────────────┘│
│┌→──────┐  ┌→───┐                                 │
││License│  │LGPL│                                 │
│└───────┘  └────┘                                 │
│┌→───────┐ ┌→──┐                                  │
││Provides│ │SQL│                                  │
│└────────┘ └───┘                                  │
│┌→──────┐  ┌→──┐                                  │
││Version│  │1.0│                                  │
│└───────┘  └───┘                                  │
└∊─────────────────────────────────────────────────┘

Regrads,
Elias






reply via email to

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