go-advice icon indicating copy to clipboard operation
go-advice copied to clipboard

Separate advices from tricks

Open taylankasap opened this issue 1 year ago • 2 comments

Repo name is go advice so I was thinking these are advices. But repo description says advice and tricks.

For example, is this an advice?

  • [ ] check interface implementation during compilation
var _ io.Reader = (*MyFastReader)(nil)

Or does it just mean "if you need to check interface implementation during compilation, then do this", if so this makes it a trick, not an advice.

Unfortunately I'm not sure which is which so I can't open a PR. But IMO there should be a separation.

taylankasap avatar Jan 31 '23 05:01 taylankasap