Timeline for Optional value in StringTemplate
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 17, 2019 at 9:25 | comment | added | Roman |
It looks like the TemplateExpression isn't being syntax-colored, both in Mathematica and in Markdown/Prettify. Just wondering aloud.
|
|
May 17, 2019 at 7:40 | comment | added | Stephen Powell |
Thanks. I think this is the most direct solution to the question as posed. I hadn't appreciated what is actually happening when the key "b" is missing from the association: #b gives Missing["SlotAbsent","b"] and then TextString applied to that gives an empty string, which is spliced in.
|
|
May 17, 2019 at 7:34 | vote | accept | Stephen Powell | ||
May 16, 2019 at 14:46 | history | answered | Carl Woll | CC BY-SA 4.0 |