emacs-devel
[Top][All Lists]
Advanced

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

Re: [ELPA] New package: hierarchy


From: Stefan Monnier
Subject: Re: [ELPA] New package: hierarchy
Date: Fri, 20 Oct 2017 16:26:17 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> I would like to add my package 'hierarchy', a library to create and
> display hierarchy structures, to ELPA. The hierarchy library has already
> been used to implement a json navigator and a Javascript class hierarchy
> navigator.

This looks really nice.  I'd welcome it into GNU ELPA.
If you need any help to install it there, let me know.

Glancing at the code, I wonder how the JSON and Javascript class
navigators work, tho: do they first convert the original tree to
a `hierarchy` struct?  How would it work if you wanted to use it to
navigate your local file-system (where the complete hierarchy might be
extremely and costly to create)?  Is there some way to construct (and
display) it lazily?

Looking at the code I get the impression that it would be nice to split
it into 3 parts:
- the `hierarchy` defstruct with associated manipulation functions.
- the display code.
- an API between the two, which we could call `tree`, a bit like `seq.el`
  defining the tree navigation primitives needed by the display code
  and which could be implemented by all kinds of data types, including
  the `hierarchy` struct.

WDYT?


        Stefan




reply via email to

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