Skip to content
Permalink
Browse files

treat angle literals as slightly special

<1/2> and <+1-2i> now produce Rat and Complex as (slightly) special
forms.  Use whitespace or french angles to get the other behavior.
  • Loading branch information...
TimToady committed Jan 18, 2012
1 parent ea9fd14 commit 744f7ca348be91f677351ec1a7ef5c7d0c3990f2
Showing with 13 additions and 2 deletions.
  1. +13 −2 S02-bits.pod
@@ -13,8 +13,8 @@ Synopsis 2: Bits and Pieces

Created: 10 Aug 2004

Last Modified: 16 Jan 2012
Version: 247
Last Modified: 17 Jan 2012
Version: 248

This document summarizes Apocalypse 2, which covers small-scale
lexical items and typological issues. (These Synopses also contain
@@ -4590,6 +4590,17 @@ visually isolating any known literal format as a single syntactic unit:
<-1+2i>.polar
(-1+2i).polar # same, but only by constant folding

Any such literal, when written without spaces, produces a pure numeric
value without a stringy allomorphism. Put spaces to override that:

<1/2> # a Rat
< 1/2 > # a RatStr

Or use the the C<«»> form of quotewords, which is always allomorphic:

«1/2» # a RatStr
« 1/2 » # a RatStr

=head3 Allomorphic Rats

Any rational literal

0 comments on commit 744f7ca

Please sign in to comment.
You can’t perform that action at this time.