[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Proposal for regions
Michael, Jim and I worked out a proposal for regions on the phone last Friday. It incorporates Luke’s concern that endColumn wasn’t previously defined consistently (Issue #171). Here’s what I pasted into Issue #93, “Problems with regions”. I’m going to start writing the spec-ese for this and I’ll move it’s adoption at TC #18 on May 30th. FYI @michaelcfanning @kupsch @lukecartey Here is the outcome of our discussion on Friday 5/18. I include a couple of points that we didn't state explicitly, but that I think are obvious (like #3). 1. Column ranges are half-open: they exclude the column specified by 2. If 3. There is no default value for EXAMPLE: The region 4. If EXAMPLE: The region 5. If EXAMPLE: Suppose line 12 consists of the characters 6. As a result of #4 and #5, a region specified solely by EXAMPLE: Suppose line 12 consists of the characters 7. To specify an insertion point, explicitly specify both EXAMPLE: The region EXAMPLE: The region NOTE: Omitting 8. Line ranges are closed: they include the line specified by 9. If a region contains more than one line, it includes the newline sequence for all but the last line. EXAMPLE: The region EXAMPLE: The region EXAMPLE: The region (-- end --) Thanks, Larry |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]