Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

[S03] Range Semantics

瀏覽次數:6 次
跳到第一則未讀訊息

Jonathan Lang

未讀,
2007年4月6日 凌晨1:17:542007/4/6
收件者:p6l
Inspired by the new array indexing syntax from S09.

Modify S03 (under "Range Semantics") so that if a Range is operating
in a bounded space, a 'whatever' star as the starting or ending point
maps to the lower or upper bound:

my enum Months «:Jan(1) Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec»
Mar..* # same as Mar..Dec
*..Mar # same as Jan..Mar

This makes Ranges in an array index a natural outgrowth of the
standard Range semantics, rather than being an exceptional case.

--
Jonathan "Dataweaver" Lang

0 則新訊息