[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Goo Nitpicks
On Fri, Aug 02, 2002 at 12:41:11PM -0400, Jonathan Bachrach wrote:
>
> actually, what i had in mind which is very much like dylan and eulisp
> is the ability to do selective imports:
>
> (use (each goo/math $pi))
>
> with prefixing
>
> (use (prefix goo/math math/))
>
> and combined
>
> (use (prefix (each goo/math $pi) math/))
I like.
>
> i would propose
>
> (take x n) == (sub x 0 n) == x[0:n]
>
> and
>
> (drop x n) == (sub x n (len x)) == x[n:]
This is good too. Perhaps a keyword variable that allows negative
numbers later on would be better than making sub* and such.
Could you guys please consider the patches for bugs 8 and 9?
9 is pretty serious. I don't care what the environment variable is
called in 8.
Thanks.
Some more nitpicks:
Could we have a way to get the return value of the last evaluated
expression?
CMUCL's *, **, and *** work well IMO (well, maybe a different character,
because * is a generic)
Also, an evil bug (should I report to BTS?):
goo/user 0<= (dc <testa> (<any>))
goo/user 0=> #f
goo/user 0<= (dp asdf (<testa> => <int>) 5)
goo/user 0=> #{Prop #{Gen asdf (<any>)}}
goo/user 0<= (dc <testb> (<testa>))
goo/user 0=> #f
goo/user 0<= (dp asdf (<testb> => <int>) 6)
goo/user 0=> #{Prop #{Gen asdf (<any>)}}
goo/user 0<= (dv my-var (new <testb>))
goo/user 0=> #f
goo/user 0<= my-var
goo/user 0=> #{<testb> asdf: 5 asdf: 5}
goo/user 0<= (asdf my-var)
goo/user 0=> 5
I swear I had more... oh well, I guess I'll just post again when I
remember :)
--
Jonathan Hseu <vomjom@vomjom.org, vomjom@debian.org, jh4@cec.wustl.edu>
GPG ID: 5228D713
GPG fingerprint: 220B A4EF 70FE B884 CB38 F93F EA8A 1024 5228 D713