Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In short:

- You can do python style by doing `from x import nil`, then all imports are package qualified. (Con: style enformcenet)

- Ambiguous overrides are compiler errors in Nim (import has an 'except' keyword to omit some), so import overrides isn't as much of an issue. (Con: upstream package can break your compile by introducing the same function name)

- Dynamic dispatch works across modules so its nice to just do sqrt() instead of math.sqrt() and complex.sqrt() (Con: this feels meh to begin with).

Shrug.



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

Search: