Skip to main content
14 events
when toggle format what by license comment
Apr 13, 2017 at 12:56 history edited CommunityBot
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
Aug 13, 2013 at 15:48 comment added Mr.Wizard @rcollyer Archimedes continues to laugh at me frequently. :o)
Aug 13, 2013 at 15:45 comment added rcollyer I think we can get five or six more messages in. I'd ask how your family was, but I don't know any of those details, so I'll refrain. :)
Aug 13, 2013 at 15:42 comment added Mr.Wizard @rcollyer I didn't honestly infer that you were, but for the OPs edification I got to share a link. How long shall we keep this up? :-)
Aug 13, 2013 at 15:35 comment added rcollyer I never meant to suggest you didn't, but for the OPs edification ...
Aug 13, 2013 at 15:33 comment added Mr.Wizard @rcollyer Okay, we agree. I had no intention of writing this rigorously. I do know how to provide full testing and messages if required.
Aug 13, 2013 at 15:30 comment added rcollyer True. If this were production code, I'd consider co-opting the message text, and using raising it myself. There is no need for the user to know that Block is used in the implementation. If not production code, then I'd let it slide. Either way, +1.
Aug 13, 2013 at 15:25 comment added Mr.Wizard @rcollyer That's not a bad idea, however curvature[foo, {1, 2, 3}] produces Block::lvsym: Local variable specification {1} contains 1, which is not a symbol or an assignment to a symbol. >> and halts, which IMHO is also not a bad behavior; the problem is safely made clear without having to add such messages to curvature itself. Do you disagree?
Aug 13, 2013 at 15:22 comment added rcollyer I would go even as far as setting var_ to var_Symbol to add an extra bit of protection, especially as your passing it into Block.
Aug 13, 2013 at 15:06 history edited Mr.Wizard CC BY-SA 3.0
added 552 characters in body
Aug 13, 2013 at 14:52 comment added Mr.Wizard @rogerl I just noticed something as I looked at this again; fn should be in a Module not Block, in case the symbol fn might appear in f; alternatively fn should be replaced with a Formal symbol. I need to revise my answer.
Aug 13, 2013 at 14:40 vote accept rogerl
Aug 10, 2013 at 1:59 history edited Mr.Wizard CC BY-SA 3.0
added 75 characters in body
Aug 10, 2013 at 1:53 history answered Mr.Wizard CC BY-SA 3.0