[maemo-developers] Enriching the Application Manager scripting experience

From: Marius Gedminas marius at pov.lt
Date: Fri Feb 23 17:50:54 EET 2007
On Fri, Feb 23, 2007 at 05:42:57PM +0200, Marius Vollmer wrote:
> "ext Marius Gedminas" <marius at pov.lt> writes:
> 
> > On Fri, Feb 23, 2007 at 04:28:37PM +0200, Marius Gedminas wrote:
> >> Let me try...
> >> 
> >>     [install]
> >>     temporary_file_relative_repo_deb = .repository/mistral mistral
> >>     temporary_file_relative_repo_deb_3 = .repository/bora bora
> >
> > On second thought, this would be better:
> >
> >       temporary_repo_deb = file-relative:///.repository/mistral mistral
> >       temporary_repo_deb_3 = file-relative:///.repository/bora bora
> >
> > The app manager can straightforwardly replace the file-relative:///
> > prefix to file:///path/to/the/location/
> 
> But that would mean more parsing in more places.  I'd like to parse
> only once, when reading the data structure, and the code then just
> walks this data structure without the need for more parsing.

My personal strategy when designing file formats is to consider the
convenience of the person who will write them first.  Parsing is not
that hard (unless you're trying to parse natural language).

Marius Gedminas
-- 
I saw `cout' being shifted "Hello world" times to the left and stopped right
there!!
        -- Steve Gonedes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20070223/7af8e4cc/attachment.pgp 
More information about the maemo-developers mailing list