Questions on how to write code in a better or different style, using Mathematica's capabilities for coding in multiple styles.

learn more… | top users | synonyms

80
votes
7answers
7k views

Struct equivalent in Mathematica?

I really miss having something like a struct in Mathematica. I know of (and regularly use) a couple of programming techniques which feel like a ...
12
votes
3answers
439 views

With versus Function

I've seen people compare Block with Module and With as scoping constructs, and try to figure ...
36
votes
5answers
710 views

Placement of Condition /; expressions

It is my practice to place Condition expressions on the left side of := and :> in almost ...
103
votes
3answers
15k views

Alternatives to procedural loops and iterating over lists in Mathematica

While there are some cases where a For loop might be reasonable, it's a general mantra – one I subscribe to myself – that "if you are using a ...