"Every other statement is error checking"
func multiplyTwoNumbers() (*myType, error) { a, err := ReadNumber() if err != nil { return nil, err } b, err := ReadOtherNumber() if err != nil { return nil, err } return &myType{a * b}, nil }
func multiplyTwoNumbers() (*myType, error) { a, err := ReadNumber() if err != nil { return nil, err } b, err := ReadOtherNumber() if err != nil { return nil, err } return &myType{a * b}, nil }
Hacker Poesy is a GNU social hub. It runs version 1.1.3-beta3, available under the GNU Affero General Public License.
All Hacker Poesy content and data are available under the Creative Commons Attribution 3.0 license.