logoalt Hacker News

dwatttttyesterday at 10:41 PM1 replyview on HN

And yet it still breaks "comments aren't semantic". That transformation I described is still invalid.


Replies

pastel8739today at 12:29 AM

I don’t understand why that wouldn’t be valid. As far as I understand if you compile code with these go:fix comments, they will be ignored. But if instead of compiling the code you run ‘go fix’, the source code will be modified to inline the function call. Only after the source code has been modified in this way would compiling reflect the inlining. Do you have a different understanding?

show 1 reply