Re: Language design

2015-06-20 Thread yary
I like the explanation of how Rats solve a class of rounding errors,
0.3 - (0.2 + 0.1) equals exactly 0 for example. On the other hand,
it's still a compromise that's shifting closer to correctness, fixing
a bunch of potential bugs, but not all in that class:

Rakudo:
> say 2 - (sqrt 2) ** 2
-4.44089209850063e-016

That's OK by me. I can also envision a type  which can perfectly
represent trigonometric and polynomial roots (backed by a symbolic
math package?), that would solve this problem. I can see why that
might be good in the core, for the same reasons that Rats are... or
maybe put them in a module, along with non-integer exponents and trig
functions, so if you can use functions with irrational numbers in
their domain, you also get the numeric types that can perfectly
represent them.

-y


[perl6/specs] bbb0e9: Clarify lack of special meaning of $a,$b in Perl 6

2015-06-20 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/perl6/specs
  Commit: bbb0e90f3a67d61cd4be9f7a419d643bd504f72d
  
https://github.com/perl6/specs/commit/bbb0e90f3a67d61cd4be9f7a419d643bd504f72d
  Author: Elizabeth Mattijsen 
  Date:   2015-06-21 (Sun, 21 Jun 2015)

  Changed paths:
M S28-special-names.pod

  Log Message:
  ---
  Clarify lack of special meaning of $a,$b in Perl 6




[perl6/specs] 1a6957: Changed equivalent of Perl 5's $0 from C<$*PROGRAM...

2015-06-20 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/perl6/specs
  Commit: 1a695756c741797827546342a2f636d360cb3ca8
  
https://github.com/perl6/specs/commit/1a695756c741797827546342a2f636d360cb3ca8
  Author: David H. Adler 
  Date:   2015-06-20 (Sat, 20 Jun 2015)

  Changed paths:
M S28-special-names.pod

  Log Message:
  ---
  Changed equivalent of Perl 5's $0 from C<$*PROGRAM> to C<$*PROGRAM_NAME>