« first day (263 days earlier)      last day (67 days later) » 

9:52 PM
I am baffled by this kind of coding:
vecNorm[vec_?VectorQ]:=Module[{},Return[Sqrt[vec.vec]]];
I would think this a beginner mistake, yet I see people like Arnoud Buzing using the empty Module thing, and also sometimes the Return.
What is this about?
 
 
2 hours later…
acl
11:40 PM
@MrW I cannot speak for others, but I myself usually do `Module[{},stuff]' automatically
basically, in preference to (stuff), as if I decide to create local vars later I don't need to rewrite anything.
I don't use the Return bit though (I don't think I ever did use Return actually)
but my programming habits are fairly arbitrary and I'm not that sophisticated a programmer anyway
probably also some inertia from lots of C programming (although I have not written C in anger for years)
 

« first day (263 days earlier)      last day (67 days later) »