Timeline for Mathematica association does not work on symbols
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 12, 2021 at 9:03 | comment | added | v1j4y |
Right ! So the -> signifies: evaluate then replace and :> signifies: replace and hold right ? Similar to the = and the hold version := .
|
|
Aug 12, 2021 at 9:00 | comment | added | Szabolcs |
@v1j4y The output Missing["KeyAbsent", Subscript[r, 1]] really is misleading. Consider how we always use := instead of = in function definitions, even though technically it is necessary only sometimes. I think it would make sense to default to :> in replacement rules as well, unless there is a clear reason to use -> . For some reason, we don't conventionally do this, as a community. Maybe it's time to change.
|
|
Aug 12, 2021 at 8:58 | vote | accept | v1j4y | ||
Aug 12, 2021 at 8:57 | comment | added | v1j4y | Perfect ! Thanks. Why is it that after 5 years of consistent MMA use, I still fall for these "trivial" oversight ? I wonder if its just my stupidity or whether this notations is unnatural. | |
Aug 12, 2021 at 8:55 | history | answered | Szabolcs | CC BY-SA 4.0 |