[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*To*: address@hidden*Subject*: Vectors as functions*From*: Shriram Krishnamurthi <address@hidden>*Date*: Thu, 14 Aug 2003 18:38:22 -0400*In-reply-to*: <AA236D25-CEA2-11D7-B291-0003938EB888@web.de>*References*: <20030814170153.80D4B6BEDE@laime.cs.uchicago.edu><AA236D25-CEA2-11D7-B291-0003938EB888@web.de>*Sender*: address@hidden

People, people -- they're being *sarcastic*. (At least, I hope to heaven you are, Prof. Findler.) Shriram Pascal Costanza wrote: > > On Donnerstag, August 14, 2003, at 07:01 Uhr, Robby Findler wrote: > > > As far as vectors as functions, it means that the vector selection > > operation becomes applying a vector (as a function) to a number. > > Mutation would be applying it to two values, a number as index and new > > value to store at that index. > > While this might be aesthetic from a mathematical point of view, I > think this most probably leads to harder to find bugs. Think about > (apply vec arglist) - this would have strongly different semantics > depending on the size of arglist. I'd prefer this to throw an exception > for the wrong number of arguments instead of letting this go through > unnoticed. > > In general, I think one shouldn't unify things that are strongly > different. > > > Pascal >

**Follow-Ups**:**Re: Vectors as functions***From:*Robby Findler <robby@cs.uchicago.edu>

**Re: Vectors as functions***From:*mike@newhall.net

**References**:**Re:***From:*Robby Findler <robby@cs.uchicago.edu>

**Vectors as functions***From:*Pascal Costanza <costanza@web.de>

- Prev by Date:
**Re: Scheme mistakes (was Re: nil)** - Next by Date:
**Re: bindings and assignments (was: Re: continuations)** - Previous by thread:
**Vectors as functions** - Next by thread:
**Re: Vectors as functions** - Index(es):