Availability:built-in
term_string(?Term,
?String)Bi-directional conversion between a term and a string. If String
is instantiated, it is parsed and the result is unified with Term.
Otherwise Term is‘written’using the option quoted(true)
and the result is converted to String. If String
only contains white space and/or comments, an syntax_error(end_of_string)
exception is raised.
- Modified in 9.3.5 (👉c60103a) term_string/2,3, atom_to_term/2 and read_term_from_atom/3 now raise exception on empty input