(no title)
yccs27 | 3 months ago
The distinction between is one I've mentally adopted in other languages like Python as well. For personal projects I like to use single quotes for 'symbols' and double quotes for "strings", e.g.:
add_label(text="Hello World!", align='center')
Does anyone else do something similar?
wild_egg|3 months ago
rubyfan|3 months ago
Fire-Dragon-DoL|3 months ago
A json api, should it use symbols or strings?
Json has string keys, but the api keys are chosen by the programmer.
I can't remember which edgecase,but there are another bunch I found that are tricky.
masklinn|3 months ago
I do exactly the same thing. Did you also derive it from Erlang?