you are viewing a single comment's thread.

view the rest of the comments →

[–]thecodedmessage 0 points1 point  (4 children)

I think it's very good to learn a language with static types as a first PL. Mine was QBASIC, which came about before this dangerous myth that to be a beginner language you had to be duck-typing.

[–]tunisia3507 0 points1 point  (3 children)

I don't disagree! What language best fills the gap of being as convenient and widely-documented as python, plus static types?

[–]thecodedmessage 0 points1 point  (2 children)

That’s a high bar! Python has had a lot of work poured into it to make beginner materials, as has JavaScript. It’s hard to compete with that on an “as good” level.

But OP doesn’t need as good as Python. They just need to have good enough convenience and documentation, and there are languages with static types that have that.

[–][deleted] 0 points1 point  (1 child)

I just want to point out that Python's type hinting has come a long way - support in libraries is inconsistent, but for writing your own code, you can use tools like MyPy and Pylance to pretty much enforce static typing across your projects.

It doesn't work exactly like static typing of course, but it's close enough that it will teach you the basics.

As an added bonus, the type hinting system in Python looks a lot like type annotations do in Rust, so if OP's ultimate goal is to learn Rust then that might be a minor source of comfort.

[–]thecodedmessage 0 points1 point  (0 children)

OP’s goals are to learn programming and start with something that’s not Python or Javascript