Could someone please give an illustrative example showing the purpose of construct of form With[{var=myComputation[...]}, var/;True]? Also, I wonder what kind of reference material are available for getting familiar with programming idioms for Mathematica. I mean besides the basic syntax that one can learn and re-learn from standard documentation, there are repeated patterns that programmers use. Somewhat similar to design patterns and "proramming pearls" for Java.
Asked
Active
Viewed 62 times
2
user13253
- 8,666
- 2
- 42
- 65
-
1It is known as the "Trott-Strzebonski method for In-Place Evaluation." If you search for the word "Strzebonski" you will find numerous references. I am closing this question as this is well explained already. (See the link in the header.) – Mr.Wizard Aug 28 '14 at 18:11
-
Ok, so the other half of the question is also refused? – user13253 Aug 28 '14 at 18:59
-
Sorry, I should not have ignored that. Those questions are already addressed in various posts, including: (18), (5059), (16485), (24988) – Mr.Wizard Aug 28 '14 at 19:07