With a C like language, it might be nice to be able to display:
(var * t) as
(var x t) - using the unicode multiply symbol.
However this causes problems with casting. eg:
void fn(MyStruct *s) becomes
void fn(MyStruct xs).
Is there a way to only replace a symbol when its surrounded by white-space? 1
" * " works but removes the spaces on either side.
- Am aware spacing in this context is just a convention, nevertheless, would be interested to know if its possible.