Re: [code] [textadept] Proposed API Changes

From: Robert <rob.g.att.web.de>
Date: Wed, 20 Mar 2013 11:52:19 +0100

Hi.

On Wed, Mar 20, 2013 at 2:32 AM, Mitchell <m.att.foicica.com> wrote:
>>> A very useful function. How about not attaching this to the `lfs`
>>> module but the `io` module? The `lfs` module feels more "third-party"
>>> to me and it could be confusing.
>
>
> I had given a lot of thought to `io`, but iterating over directories without
> reading or writing to files doesn't feel like `io`. I also don't feel like
> it fits when looking at the current `io` API.

I was reluctant to suggest `io` for the same reason.

> What about `os.dir_foreach()`? But that doesn't exactly feel right either...

If none of the options (`lfs`, `os`, `io`) feel quite right, how about
something else? Could `dir_foreach` be put somewhere else? Could there
be a general `foreach` or `each` filtering function that could be used
elsewhere as well?

Robert

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 20 Mar 2013 - 06:52:19 EDT

This archive was generated by hypermail 2.2.0 : Thu 21 Mar 2013 - 06:52:16 EDT