Skip to main content

Questions tagged [language-design]

for questions about the design of the Mathematica language itself

20 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
43 votes
0 answers
1k views

Performance problems in new Sequence functions

The new-in-10.1 Sequence* family of functions should provide newly optimized methods for handling sequence problems. Happily in some cases they do! For example ...
Mr.Wizard's user avatar
  • 272k
14 votes
0 answers
132 views

Why does MapAt unpack individual elements?

(In case this is version specific I am using Mathematica 10.1 under Windows.) While responding to Partition array without unpacking I noticed something about MapAt ...
Mr.Wizard's user avatar
  • 272k
13 votes
0 answers
560 views

Is there research about the Mathematica programming paradigm?

There seem to be lots of papers discussing the functional programming paradigm terminology for Haskell, such as monad, category theory, lambda calculus, *morphism, etc. People study concepts and ...
Eric's user avatar
  • 1,191
9 votes
0 answers
65 views

Does ArgumentsOptions do anything we couldn't do without it?

ArgumentsOptions was new in version 12.2. I looked at the application on that page, and it makes code very difficult to understand. What if anything does ArgumentsOptions do for us that we couldn't do ...
Ted Ersek's user avatar
  • 7,134
9 votes
0 answers
126 views

List assigment ({...}={...}) and UpValues

Let's say I want to track any assignment attempt for a variable a: a /: Set[a, x_] := Print@{a, x} This works as intended: <...
Lukas Lang's user avatar
  • 34.2k
8 votes
0 answers
106 views

What is the philosophy behind \[Rule] (a.k.a. `->`) for assigning options?

Today I was banging my head against my desk when I realized that the problem I was experiencing was due to having typed ImageSize[Large] instead of ...
Kai's user avatar
  • 2,099
8 votes
0 answers
145 views

Relation between the syntactic and evaluated Association

This question is inspired by this answer and related to unsolved post "Association's Attributes change between 10.3.1 & 10.4"...
luyuwuli's user avatar
  • 2,814
7 votes
0 answers
199 views

Why patterns names aren't scoped by default?

In a recent question [1] OP asked how to make Module scope working inside Set, so how to get: ...
Kuba's user avatar
  • 137k
5 votes
0 answers
64 views

Why ReadList ignores NullRecords for Number?

When thinking on this recent question the immediately obvious solution which came to my mind was to use ReadList with options ...
Alexey Popkov's user avatar
4 votes
0 answers
74 views

Why does `MakeBoxes` have the HoldAllComplete attribute and ignore it rather than HoldAll?

MakeBoxes has the attribute HoldAllComplete. For a normal function, it would imply that Upvalues should not be taken into account when the expression is evaluated: <...
Juan Mauricio Matera's user avatar
4 votes
0 answers
102 views

Obtain complete list of built-in graphical objects, and split them into groups?

I would like to obtain the complete listing of built-in graphical objects (which can be used in Graphics or Graphics3D) ...
Alexey Popkov's user avatar
4 votes
0 answers
97 views

Why is SparseArray atomic?

This answer tells us that functions like ReplaceAll do not straightforwardly work for the entries of sparse arrays because a ...
Jules Lamers's user avatar
  • 1,104
3 votes
0 answers
146 views

Why is MeshRegion atomic?

I wanted to make some changes inside a MeshRegion today and found that unlike Graphics objects, it can't be done directly ...
vapor's user avatar
  • 7,921
3 votes
0 answers
435 views

Mixing Wolfram Language & WolframAlpha Queries - How robust is it?

The advent of Mathematica in the cloud and linguistic input potentially transforms expectations of the Wolfram Language's programming model and its inherent robustness. An example of this comes form ...
Ronald Monson's user avatar
2 votes
0 answers
103 views

Why does Plot function have HoldAll attribute?

I had an odd issue where my plot wasn't drawn correctly when I called it via Plot[Join[fs,gs], (*..*)]. However, these two versions worked: ...
Niklas Vest's user avatar
2 votes
0 answers
66 views

Should SubsetMap be called CombineAt?

I'm a big fan of the functionality introduced by SubsetMap but am puzzled as to why it was not called "CombineAt". There are ...
Ronald Monson's user avatar
1 vote
0 answers
136 views

Why is the dot operator not just matrix multiplication?

It seems to me Mathematica does not have an inbuilt matrix multiplication operator. The dot operator fails as such, as is even noted under "Possible Issues" in its documentation it ...
cbartondock's user avatar
1 vote
0 answers
57 views

"Compile-time" patterns

If I define a function like f[x : {_, _Integer}] := (* function body *) then, as I understand it, every time f[expr] is ...
thorimur's user avatar
  • 9,020
1 vote
0 answers
146 views

Intervals v.s. Domains: when to use which and why?

or: How to use Interval correctly? Mathematica provides these constructs for various symbolic deductions tasks. Among those constructs are symbolic number sets ...
Gravifer's user avatar
  • 872
0 votes
0 answers
37 views

Create auto-completion for Wolfram Entity framework related functions when using with user-defined entity store

I am trying to create autocompletion for my custom entity store, for example in the document of EntityStore ...
Nhan_nht's user avatar