this post was submitted on 03 Aug 2023
1005 points (98.2% liked)

Programmer Humor

31952 readers
607 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] shroomato@lemmy.world 8 points 1 year ago (4 children)

Is there a typescript analogue for python? Preferably that adds curly braces?

[–] d_k_bo@feddit.de 5 points 1 year ago* (last edited 1 year ago)

Type Annotations and other typing-related stuff are built into the language/standard library.

To get a real benefit you should use a static type checker like mypy.

[–] UlrikHD@programming.dev 2 points 1 year ago

Just be a decent human being and use type hints in python, problem solved.

[–] Iridium@lemmy.world 1 points 1 year ago

from __future__ import braces

Give it a go

[–] shulhan@lemmy.sdf.org 0 points 1 year ago (1 children)
[–] CanadaPlus@lemmy.sdf.org 1 points 1 year ago* (last edited 1 year ago)

Oh, is that what the Go is all about?