2 ms·
Could you explain why that snippet makes you decide that way?
by xtacy 12y ago
Could you explain why that snippet makes you decide that way?
- throwaway_99837 12y agoPseudocode (better). Notice the immutable everything and the brevity (i.e., vertical space saved). interactive := (name == "-") fd, err := interactive ? (os.Stdin, None) : os.Open(name) [And yes I understand that Go probably doesn't have tuple literals or a concept of 'None'].