4 ms·
I'm not usually a stickler for syntax, but `interface{}` => `interface: pass`? It really seems like the indentation approach creates more problems than it solve
by weberc2 10y ago
I'm not usually a stickler for syntax, but `interface{}` => `interface: pass`? It really seems like the indentation approach creates more problems than it solves. :(
EDIT: Props for writing this in Go though. Oden (the other 'compiles to Go' language) is implemented in Haskell, which means that I can't hack on it.
- s_kilk 10y agoBasically the same problem Python suffers from. You can omit block symbols from the language, but you still need a way to express an empty block.
- wowoc 10y agoThat's what I'm a bit afraid of - that it will feel awkward to people without prior Python experience. I have spent a considerable amount of time developing in Python, so the way empty interface is written looks natural to me.
- weberc2 10y agoI program in Python professionally, and it still feels a bit awkward. :/ I don't want to make this a bigger deal than it is, but I'm not sure that you gain much by adhering to the Python syntax. That's just my $0.02. I'm excited to play around with it though. :)