That may be possible in script languages but nim is static typed compiled language. Type of "a" variable must be known on compile time. You cant change type of variable on runtime. So why not you go and declare "a : seq[string]" anyway ? Because what you're asking has no substantial benefit.
- Inferring type of zero-sized collection from usage sky_khan
- Inferring type of zero-sized collection from usage Araq
- Inferring type of zero-sized collection from usag... jrfondren
- Inferring type of zero-sized collection from ... alexeypetrushin
- Inferring type of zero-sized collection f... jrfondren
- Inferring type of zero-sized collection f... Araq
- Inferring type of zero-sized collection f... alexeypetrushin
- Inferring type of zero-sized collection f... sky_khan
- Inferring type of zero-sized collection f... alexeypetrushin
- Inferring type of zero-sized collection f... xigoi
- Inferring type of zero-sized collection f... sundar33w
- Inferring type of zero-sized collection f... juancarlospaco
- Inferring type of zero-sized collection f... Isofruit
- Inferring type of zero-sized collection f... sls1005