4 ms·
I'm still new to Go, but the functions don't have to be anonymous, right? What would be wrong with defining all of your functions somewhere (for updates, iterat
by okatsu 12y ago
I'm still new to Go, but the functions don't have to be anonymous, right? What would be wrong with defining all of your functions somewhere (for updates, iterations, etc.) and passing them by name to Bolt's?
- deleted 12y ago[deleted]
- mrweasel 12y agoYou could name your functions, but you won't really be able to parse in any data. Unless you wrap then Update and View functions as well. As others points out there's nothing wrong the Bolt code, it's fine and pretty common, I just don't like it.
- fishnchips 12y ago> Unless you wrap then Update and View functions as well. This is how I'd do it.