Hacker News new | past | comments | ask | show | jobs | submit login

You wouldn't really do that. But Nim can do basic type inference. So to initialize string and numeric variables, you don't need to explicitly declare the type. https://nim-by-example.github.io/variables/

The type inference extends to a few other situations I believe. Essentially it is a typed language, but it doesn't always make you declare things when they are obvious.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: