Re: named sub-expressions, n-ary functions, things and stuff

2006-11-14 Thread Dr.Ruud
Smylers schreef: > my $whatever > = do { my $baz = $bar * 17; my $quux = $baz - 3; $baz / $quux }; ($bar better not be 3/17) Just a rewrite: my $whatever = do { my $quux = (my $baz = $bar * 17) - 3; $baz / $quux }; And maybe even something like: my $whatever = do

Re: named sub-expressions, n-ary functions, things and stuff

2006-11-13 Thread Darren Duncan
At 11:24 PM + 11/13/06, Smylers wrote: Darren Duncan writes: > 1. I'm not sure if it is possible yet, but like Haskell et al ..., it should be possible to write a Perl 6 routine or program in a pure functional notation or paradigm, such that the entire routine body is a single expression

Re: named sub-expressions, n-ary functions, things and stuff

2006-11-13 Thread Smylers
Darren Duncan writes: > 1. I'm not sure if it is possible yet, but like Haskell et al ..., it > should be possible to write a Perl 6 routine or program in a pure > functional notation or paradigm, such that the entire routine body is > a single expression, but that has named reusable sub-expressio

Re: named sub-expressions, n-ary functions, things and stuff

2006-11-13 Thread Darren Duncan
At 11:00 AM -0500 11/13/06, Mark J. Reed wrote: On 11/13/06, Darren Duncan <[EMAIL PROTECTED]> wrote: - There are no Undef or NaN etc values or variables. A RDBMS language with no "null" would seem to be problematic.. although i guess you could just use 1-tuples where the empty tuple is treate

Re: named sub-expressions, n-ary functions, things and stuff

2006-11-13 Thread mark . a . biggar
And you may be forced to deal with NaN and Inf values if you are storing raw binary float values as they are built into the bit patterns. -- Mark Biggar [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] -- Original message -- From: "Mark J. Reed" <[EMAIL PROT

Re: named sub-expressions, n-ary functions, things and stuff

2006-11-13 Thread Mark J. Reed
On 11/13/06, Darren Duncan <[EMAIL PROTECTED]> wrote: - There are no Undef or NaN etc values or variables. A RDBMS language with no "null" would seem to be problematic.. although i guess you could just use 1-tuples where the empty tuple is treated as null. -- Mark J. Reed <[EMAIL PROTECTED]>

named sub-expressions, n-ary functions, things and stuff

2006-11-13 Thread Darren Duncan
All, As I've continued to develop my Perl-implemented and integratable RDBMS, a number of aspects have inspired thought for posible improvements for the Perl 6 language design. For context, the query and command language of my RDBMS intentionally overlaps with Perl 6 as much as reasonable; t