Re: [pure-lang-users] pure won't complile anymore
Status: Beta
Brought to you by:
agraef
|
From: Albert G. <Dr....@t-...> - 2008-09-04 18:18:16
|
Eddie Rucker wrote:
> They seem to be down quite a bit :(
svn is back up, and I committed the latest changes (see ChangeLog). The
manual also has a subsection with (hopefully) instructive stream
examples now. (See the end of the EXAMPLES section.)
> Uhm. Mine don't do that. I'm using revision 698 that latest.
> > ones = 1 : ones&;
> > integers=1 : zipwith (+) ones integers&;
> > let ints = integers;
> > take 10 ints;
> 1:{{thunk 0x7fe5e17d0488}}
Yes, the results you got are correct. I fixed up take/takewhile which
were too eager. Use, e.g., list (take 10 ints) to force the stream, like
in Q.
(I also changed the <<external object>> notation, which could be
mistaken as ordinary expression syntax, to those double curly braces
which aren't -- and won't be -- legal Pure. If anyone has a better
suggestion, or prefers it the way it was, I'd like to hear about it.)
Talking about the dreaded 'list' at the beginning of a line ambiguity, I
really think I have to do something about this, it bites me all the
time, too. I don't have that problem with other commands, it's just that
darn 'list' command, because the 'list' function gets used so frequently.
How about calling the interactive 'list' command 'lsd' (for "list
definition") instead? In any case it should be short, memoizable and not
likely to be used as a function name. Any better ideas?
Cheers,
Albert
--
Dr. Albert Gr"af
Dept. of Music-Informatics, University of Mainz, Germany
Email: Dr....@t-..., ag...@mu...
WWW: http://www.musikinformatik.uni-mainz.de/ag
|