Re: Question about UpSet vs SetDelayed
- To: mathgroup at smc.vnet.net
- Subject: [mg63808] Re: Question about UpSet vs SetDelayed
- From: "Chris Chiasson" <chris.chiasson at gmail.com>
- Date: Sat, 14 Jan 2006 02:34:46 -0500 (EST)
- References: <dq7u2s$3r6$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Andy Somogyi, I noticed you haven't used any patterns in your statements. It would be significantly easier to arrive at different results when patterns are involved. There are a lot of different cases where using TagSet or UpSet or Set (or delayed variants thereof) would be appropriate... Here is an UpSet example that would not make much sense as a Set. In[1]:= g_Integer[s]^=jump Out[1]= jump In[2]:= f[s] Out[2]= f[s] In[3]:= f[s]/.f\[Rule]1 Out[3]= jump Regards,