Comment

Comment by coverup

FWIW, there's a slightly more concise way of expressing this in Go:

    type state int
    
    const (
        on state = iota
        off
    )
parent coverup 6 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton