[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC] Convention for multi-line pretty-printed output
From: |
Dan Čermák |
Subject: |
Re: [RFC] Convention for multi-line pretty-printed output |
Date: |
Sun, 03 May 2020 08:27:26 +0200 |
"Jose E. Marchesi" <address@hidden> writes:
> Hi people!
>
> So I am suggesting to extend the convention: in case you want the
> pretty-printed representation to span for more than one line, you should
> place first the `#<' starting at the column 0, then the lines with the
> data, and finally `>' in its own line starting at column 0.
>
> I used this convention for id3v1 tags, and this is the result:
>
> (poke) .file eclipse.mp3
> The current IOS is now `./eclipse.mp3'.
> (poke) load id3v1
> (poke) ID3V1_Tag @ (iosize (get_ios) - 128#B)
> #<
> genre: 255
> title: 01 - Eclipse De Mar
> artist: Joaqun Sabina
> album: Mentiras Piadosas
> year:
> comment:
> track: 1
> >
> (poke)
>
> Comments?
Sounds good to me! Is there any particular reason for using #< > and not
#< #>?
Speaking of pretty printers: how would I add one? I've glanced over the
poke manual, but couldn't find anything obvious.
Cheers,
Dan
signature.asc
Description: PGP signature