Re: [pure-lang-users] Proposed syntax changes
Status: Beta
Brought to you by:
agraef
From: Eddie R. <er...@bm...> - 2008-08-18 13:43:14
|
IMHO, the following rules should be added for pow: pow n::int (x%y) | pow n::bigint (x%y) | pow n::double (x%y) = pow n (x/y); So that > pow 16 (1%2); 4.0 instead of the current > pow 16 (1%2); pow 16 (1L%2L) e.r. On Mon, 2008-08-18 at 08:29 -0500, Eddie Rucker wrote: > Should the rule > > a%b = a if b == 1 || b == 1L; > > be added to math.pure or should this be defined by the user? > > e.r. > > On Mon, 2008-08-18 at 08:02 -0500, Eddie Rucker wrote: > > On Mon, 2008-08-18 at 14:08 +0200, Albert Graef wrote: > > > Albert Graef wrote: > > > > - The discussion I had with Libor about how to implement a sequencing > > > > operator ("first x, then y") also kept me thinking, because the solution > > > > I proposed there is not tail-recursive. To do this in a proper way, we'd > > > > need a built-in sequencing operator (special form). While it's not > > > > strictly needed, it's much more convenient than having to write 'y when > > > > _ = x end' all the time. > > > > > > This is now implemented as well. ($$ operator) > > > > > > I'm basically through with my 0.5 TODO list now (Windows port > > > notwithstanding; I can hopefully take a look at that later today). So if > > > anyone is still listening, it would be nice if you could take the latest > > > svn for a test drive. ;-) > > > > > > I also vaguely recall that someone volunteered to write a little test > > > module for math.pure, or did I just dream that up? :) > > > > Was that me? I'll see what I can do ASAP. > > > > e.r. > > > > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > > Build the coolest Linux based applications with Moblin SDK & win great prizes > > Grand prize is a trip for two to an Open Source event anywhere in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > pure-lang-users mailing list > > pur...@li... > > https://lists.sourceforge.net/lists/listinfo/pure-lang-users > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > pure-lang-users mailing list > pur...@li... > https://lists.sourceforge.net/lists/listinfo/pure-lang-users |