[Top][All Lists]

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

Re: Very Small Atom Feed Reader

From: Amirouche Boubekki
Subject: Re: Very Small Atom Feed Reader
Date: Sun, 13 Mar 2016 12:20:07 +0100
User-agent: Roundcube Webmail/1.1.2

Le 2016-03-13 11:42, Alex Kost a écrit :
Amirouche Boubekki (2016-03-06 17:12 +0300) wrote:


Hi there!

I share with you this small *atom* feed reader which works from command line. Create a ~/.prime.txt file with the address of atom files you want
to follow and then run the script.

The problem I have is that it fails on wingolog and others but I'm
accepting patches ;)

(use-modules (srfi srfi-9))
(use-modules (srfi srfi-19))
(use-modules (srfi srfi-26))

(use-modules (ice-9 match))
(use-modules (ice-9 rdelim))
(use-modules (ice-9 receive))

(use-modules (sxml xpath))
(use-modules (sxml simple))

(use-modules (srfi srfi-1))

(use-modules (web client))

Why do you use 'use-modules' for every module instead of:

  (use-modules (srfi srfi-1)
               (srfi srfi-9)

Because it's easier to type...

;;; sxml procedures

(define (file->sxml filename)
  (cdr (xml->sxml (with-input-from-file filename
                    (lambda ()

No need in lambda here, just: (with-input-from-file filename read-string)


Amirouche ~ amz3 ~

reply via email to

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