mathics / Mathics

This repository is for archival. Please see https://github.com/Mathics3/mathics-core
https://mathics.org
Other
2.07k stars 206 forks source link

Reserve Mathematica function names and indicate they are unimplemented #734

Open ghost opened 6 years ago

ghost commented 6 years ago
In[3]:= Fit[{1,2,4,8,17},{1,x,x^2},x]
Out[3]= Fit[{1, 2, 4, 8, 17}, {1, x, x ^ 2}, x]

Instead of returning its input essentially unchanged, it should return some version of "We know the Fit function exists in Mathematica, but isn't currently implemented in Mathics. However, Fit is a reserved word, so you can not use it as a name for one of your own functions"

wolfv commented 5 years ago

Do you know if there is a reference list of all Mathematica functions somewhere?

ghost commented 5 years ago

https://reference.wolfram.com/language/guide/AlphabeticalListing.html

You can get also get these (+ some more stuff) by doing "?*" in Mathematica

Additionally, Mathics should disallow (or at least discourage) user functions where the first letter is capitalized, since Mathematica reserves these names for itself, and it may cause a conflict in the future.

Same for variables starting with '$'.