Open bmwilly opened 7 years ago
That's a PrettyPFA limitation— which developed separately from the PFA library. "to" is a reserved word in the PrettyPFA parser, but it's a required field in records that passed into interpolation functions.
Since the PFA specification is more robust than PrettyPFA (which is just an implementation), I think the best solution to this is to modify PrettyPFA, un-reserving "to" as a keyword and replacing it with some punctuation, such as "-->".
Several PFA library functions (e.g.,
interp.linear
) require records with the field nameto
, but trying to define a record with a fieldto
leads to an error.Minimal reproducible example: