[plt-dev] SRFI 19 - parsing years from human input
On Wed, Mar 10, 2010 at 8:55 AM, Dave Gurnell <d.j.gurnell at gmail.com> wrote:
> Here's a first attempt at this.
> I've added a "~?" wildcard, so named because:
> - all letters with the exception of ~g, ~o, and ~q are already used in
> date->string;
> - ~g, ~o and ~q seemed inappropriate (although adding my own initial to the
> library was momentarily attractive);
> - ~? implies an appropriate uncertainty about the number of digits in the
> year.
> Not sure whether I've edited the right file for the
> documentation... presumably the SRFI pages are standard across all
> implementations. Could use some feedback on that.
I think what you did is fine.
I'll wait until after the next release (Eli just sent the message) and
commit, if there are no objections, is that okay for you?
Jay
> I've also realised that none of the ~y, ~Y or ~? wildcards will recognise
> negative years. Not sure if this is a bug - I can correct this too if need
> be.
> I've attached the following files in a ZIP archive:
>
> complete source of $PLTHOME/collects/srfi/19/time.ss
>
> complete source of $PLTHOME/collects/tests/srfi/19/tests.ss
>
> complete source of $PLTHOME/doc/srfi-std/srfi-19.html
>
> output from "svn diff"
>
> Comments and corrections welcome.
> Cheers,
> -- Dave
>
>
>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-dev
>
>
--
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://teammccarthy.org/jay
"The glory of God is Intelligence" - D&C 93