Open
Description
Issue created from fantomas-online
(This is @Smaug123 but from the office.)
Code
let x = ~~1
let y = ~~x
Result
let x = ~~ 1
let y = ~~x
Problem description
The formatting is inconsistent between when the argument of a unary operator is a literal vs a variable. I'd prefer us to stick with ~~1
(removing the space, as we do with the variable case).
Extra information
- The formatted result breaks my code.
- The formatted result gives compiler warnings.
- I or my company would be willing to help fix this.
- I would like a release if this problem is solved.
Options
Fantomas main branch at 2024-09-14T12:20:28Z - 06d86ad
Default Fantomas configuration
Did you know that you can ignore files when formatting by using a .fantomasignore file?
PS: It's unlikely that someone else will solve your specific issue, as it's something that you have a personal stake in.