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

Language comparison misrepresents Python #15

Open
dhouck opened this issue Sep 15, 2020 · 1 comment
Open

Language comparison misrepresents Python #15

dhouck opened this issue Sep 15, 2020 · 1 comment

Comments

@dhouck
Copy link

dhouck commented Sep 15, 2020

In the language comparison section of src/page-template.html, you say that Python does not have type annotations. It does, using similar syntax to pyret in that example:

def square(n : int) -> int:
  return n * n

These arenʼt automatically checked and verified by default, but they can be used by various tools (see PEP484 and PEP526).

Probably a better example should be chosen for this (JavaScript? TypeScript exists but it isnʼt the same thing).

jpolitz added a commit that referenced this issue Jul 8, 2021
@jpolitz
Copy link
Member

jpolitz commented Jul 8, 2021

Thanks for pointing this out! This might be a more accurate comparison these days:

image

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

2 participants