Skip to main content
7 events
when toggle format what by license comment
May 26, 2021 at 15:00 history tweeted twitter.com/StackMma/status/1397568208169754633
May 26, 2021 at 13:06 comment added flinty @JustSomeOldMan I think 'immutable beats mutable' is from the point of view of debuggability and reasoning about your program, guaranteeing that immutable variables won't change, confining bug prone mutability to fewer lines of code. The performance differences are small.
May 26, 2021 at 6:29 comment added I.M. Related, also you can 'chain' locals with With, e.g. With[{a = 2}, {b=a^2}, {c=b^2}, c]
May 26, 2021 at 5:03 history edited Just Some Old Man CC BY-SA 4.0
added 20 characters in body
May 26, 2021 at 0:56 comment added Just Some Old Man @Alan When you say “Immutable beats mutable”, you mean performance-wise. Correct?
May 25, 2021 at 19:37 comment added Alan I'd say With outermost and Module as inner as possible, even if that means using nested Withs. (Reason: immutable beats mutable.) And avoid Block unless you know why you must use it. But I'll listen to whatever the CS guys have to say.
May 25, 2021 at 19:24 history asked Just Some Old Man CC BY-SA 4.0