Skip to content

Commit 20a1aa0

Browse files
committed
Clarify Symbol as per mmatera
Update builtin/atomic/symbols.py according to current standards.
1 parent 65cf63c commit 20a1aa0

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

mathics/core/symbols.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,13 +332,17 @@ def replace_slots(self, slots, evaluation) -> "Atom":
332332

333333

334334
class Symbol(Atom, NumericOperators, EvalMixin):
335-
"""
336-
A Symbol is a kind of Atom that acts as a symbolic variable.
335+
"""A Symbol is a kind of Atom that acts as a symbolic variable.
337336
338337
All Symbols have a name that can be converted to string.
339338
340-
A Variable Symbol is a ``Symbol``` that is associated with a ``Definition``
341-
that determines its evaluation value.
339+
A Variable Symbol is a ``Symbol``` that is associated with a
340+
``Definition`` that has an ``OwnValue`` that determines its
341+
evaluation value.
342+
343+
A Function Symbol, like a Variable Symbol, is a ``Symbol`` that is
344+
also associated with a ``Definition``. But it has a ``DownValue``
345+
that is used in its evaluation.
342346
343347
We also have Symbols which in contrast to Variables Symbols have
344348
a constant value that cannot change. System`True and System`False

0 commit comments

Comments
 (0)