Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errata in Day 5: Variables #1

Open
frankhart2018 opened this issue Mar 17, 2024 · 0 comments
Open

Errata in Day 5: Variables #1

frankhart2018 opened this issue Mar 17, 2024 · 0 comments

Comments

@frankhart2018
Copy link

frankhart2018 commented Mar 17, 2024

This is more of an errata for the newsletter contents, but I couldn't find a repository for the source of that, so adding it here. The particular paragraph that is erroneous is this one:

One key difference between strongly typed languages like C and loosely typed languages like Python lies in how you declare variables. In strongly typed languages like C, you must explicitly define the data type of each variable. Loosely typed languages, however, can infer the data type based on how the variable is used. Rust, while being strongly typed and compiled, adopts a slightly different approach. Let's try this example

  • This mentions strongly v/s loosely typed languages, but I think the correct term here would be statically v/s dynamically typed which is not synonymous with strongly/loosely typed.
  • It also mentions that Python is a loosely typed language, which is not correct. Being loosely typed is to not adhere to the type (whether statically specified or dynamically interpreted), which Python does follow pretty strictly. So, if anything, Python is a strongly typed (but dynamically typed) language.

I hope you'd consider making these changes, thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant