From: Timothy J. H. <ti...@cs...> - 2004-06-17 20:48:16
|
On Jun 17, 2004, at 1:07 PM, Ken Anderson wrote: > Just to be clear my proposal was to use #{ ... }# and #[ ...]#. (ie # > is outside). > > Well, there's a tradition in common lisp, at least that we'd be > against if we use > #{ ... #} and #[ ... #]. > > In CL you have: > #<... ># to indicate the print representation of a thing that can be > read by (read). > #| ... |# for an extended comment. I think PLT Scheme has this too. I see. The ide is that the initial token is HASH-SYMBOL and the close token is just the reverse..... Since there are precedences in Common Lisp and PLT scheme, not to mention the /* ... */ for Java or the case ... esac of Ada, I think it makes sense. I'll work on changing the syntax, before anyone has become too heavily invested in it.... I've already used this syntax in my class (but I noticed that I frequently wrote ]# instead of #] ... maybe its a sign....). ---Tim--- > > Though vectors are #(1 2 3) not #(1 2 3)#. > > While #{ is a macro character, #} really isn't, and i don't think its > right think of it as one. > > Johnathan, or Rusty do you have an opinion on this? > > At 06:29 PM 6/16/2004 -0400, Timothy John Hickey wrote: >> I guess my feeling was that it might get confusing for people to >> remember >> whether we were using #{... }# or {#....#} >> and if we escaped with #[...]# or [#...#] >> So having a simple HASH-SYMBOL syntax for each delimiter makes it >> somewhat easier >> to remember... > |