by yccs27 · 1y ago · 0 comments
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?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.
I do exactly the same thing. Did you also derive it from Erlang?