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

> I sometimes wish I had types in Python.

You do. They're not statically checked, but they're there.

> I love Pyton/Ruby and other dynamic languages, but I miss the C++ type system when using them.

Why not use a language less syntactically heavy than C++ but still statically typed then? (and C++'s type system? not really going for the stars, are you?) Because a major part of Python and Ruby is indeed that they're not statically typed. A nominative static type system would yield quite different a language, probably something close to Cython[0]. Alternatively, you could fork Python or Ruby with a structural type system, this could be interesting but still — I think — different languages than their originators, not merely dialects. It also would be nothing even remotely close to "the C++ type system" (not that this would be a bad thing, AFAIC). And you probably wouldn't know "what types you're comparing" either.

[0] http://en.wikipedia.org/wiki/Cython



Yes, I know they are there. I meant static types. I thought that was implied.


Or put in other way: typed variables instead of only typed values.


+1 for "C++'s type system? not really going for the stars, are you?" Best laugh all day.




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

Search: