gilbert189 — 11/13/2022, 7:09:44 AM
Typed Python 3.8.10 (default, Jun 22 2022, 20:18:18) 
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> a = 1
>>> a = "1"
  File "<stdin>", line 1
    a = "1"
    ^
TypeError: Mismatched types, variable "a" only accepts number
>>> 

imagine

♥ 0 ↩ 0 💬 4 comments

comments

cst1229:

Typethon (also, imagine if strictly typed languages worked like that instead of specifically defining a type when declaring the variable lol)

11/13/2022, 7:43:44 PM
gilbert189:

I think Rust does that

11/13/2022, 11:43:22 PM
quantum-codes:

python is a lie /j

11/13/2022, 11:07:38 AM
quantum-codes:

Oh wait

Typed Python 3.8.10

Why did you even search for this lol

11/13/2022, 1:00:52 PM