gop
gop copied to clipboard
2 Feature proposals
Proposal
Just met with this repository and seems very promising! 2 ideas that came to my mind that can be also cool if you would support in this language:
- String interpolation with $ sign - like:
println ("num 1: $num, num2: ${num2*2}") - enums support like:
enum Gender {male, female}and then we could usevar gender Genderandgender := Gender.male
Background
just cool features than can be added, to make gop even more awsome
Workarounds
for string interpolation: fmt.Sprintf for enum this can be used in regular go: https://stackoverflow.com/questions/14426366/what-is-an-idiomatic-way-of-representing-enums-in-go