On Thu, Jun 2, 2022 at 4:38 PM Deividas Petraitis <h...@deividaspetraitis.lt> wrote:
> 1. Structs are for representing things, they are things Forget about structs. Methods are attached to types. Structs are just one of the many kinds of types. Assuming structs only does not provide the full picture one needs to think about methods vs functions. > 2. Funcs are for performing actions, calculating things > 3. Methods for performing actions on thing state Types do not necessarily have any state (think of zero sized types). Yet they may still be very useful. Another reason why to get rid of the assumption "thing" == struct. > 4. Methods to satisfy interface -j -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAA40n-W1BsFGUTdBX4hg6%2BMcsFKOwer5_941uc9%2BH3%2B4XJODCA%40mail.gmail.com.