Am I wrong to find the output to the console of erlang:display/1 inconsistent in it’s representation of atoms representing expressions and operators?
For my current use, in debugging match specifications, I would prefer that boolean expressions were output with single quotes as all term comparisons, and some arithmetic expressions are.
1> TermComparisons = ['==', '/=', '=<', '<', '>=', '=:=', '=/+'].
['==','/=','=<','<','>=','=:=','=/+']
2> ArithmeticExpressions = ['+', '-', '*', '/', 'bnot', 'div', 'rem', 'band', 'bor', 'bxor', 'bsl', 'bsr'].
['+','-','*','/','bnot','div','rem','band','bor','bxor',
'bsl','bsr']
3> BooleanExpressions = ['not', 'and', 'or', 'xor'].
['not','and','or','xor']
4> ShortCircuitExpressions = ['orelse', 'andalso'].
['orelse','andalso']
5> ListOperations = ['++', '--'].
['++','--']
6> erlang:display(TermComparisons).
['==','/=','=<','<','>=','=:=','=/+']
true
7> erlang:display(ArithmeticExpressions).
['+','-','*','/',bnot,div,rem,band,bor,bxor,bsl,bsr]
true
8> erlang:display(BooleanExpressions).
[not,and,or,xor]
true
9> erlang:display(ShortCircuitExpressions).
[orelse,andalso]
true
10> erlang:display(ListOperations).
['++','--']
true