develooper Front page | perl.perl6.language | Postings from August 2006

[svn:perl6-synopsis] r11137 - doc/trunk/design/syn

From:
larry
Date:
August 18, 2006 09:09
Subject:
[svn:perl6-synopsis] r11137 - doc/trunk/design/syn
Message ID:
20060818160922.28A20CB9BB@x12.develooper.com
Author: larry
Date: Fri Aug 18 09:09:21 2006
New Revision: 11137

Modified:
   doc/trunk/design/syn/S02.pod

Log:
conjecture about conversion of undef to NaN
grammo from Mark Reed++


Modified: doc/trunk/design/syn/S02.pod
==============================================================================
--- doc/trunk/design/syn/S02.pod	(original)
+++ doc/trunk/design/syn/S02.pod	Fri Aug 18 09:09:21 2006
@@ -471,11 +471,16 @@
 
     my Int $x = undef;    # works
 
-Variables with native types does not support undefinedness: it is an error
+Variables with native types do not support undefinedness: it is an error
 to assign an undefined value to them:
 
     my int $y = undef;    # dies
 
+Conjecture: num might support the autoconversion of undef to NaN, since
+the floating-point form can represent this concept.  Might be better
+to make that conversion optional though, so that the rocket designer
+can decide whether to self-destruct immediately or shortly thereafter.
+
 =item *
 
 Every object supports a C<META> function/method that returns the



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About