News for hackers. Stuff that matters.
Re:Mathematica v12.1 by carry_bit on Thursday March 19, 2020 @09:15AM (#22627143)
Yes, in WL strings are commonly used in a matter similar to enums in other languages.

The thing to keep in mind is that WL is based on symbolic replacement. You normally wouldn't define that kind of function as taking in a parameter (i.e., CreateDataStructure[x_] := ...), rather you'd define it for each case separately (i.e., CreateDataStructure["LinkedList"] := ...).

Re:Mathematica v12.1 by davnn on Thursday March 19, 2020 @01:59PM (#22629933)
Well.. if constants were a thing you could probably also pattern match them.
Re:Mathematica v12.1 by garmaine on Thursday March 19, 2020 @05:01PM (#22631693)
It's a constant string :P