emeraldthunder1 β€” 1/22/2023, 8:00:24 AM

Imagine python, but statically typed and with curly braces.

def str greet(str name) {
    return f"Hello, {name}"
}
β™₯ 3 ↩ 1 πŸ’¬ 4 comments

comments

radi8:

noooo

1/27/2023, 4:28:12 PM
lily:

i think this syntax is nicer:

def greet(name: str) -> str {
  f"Hello, {name}"
}
1/22/2023, 10:44:05 PM
pkmnq:
greet :: str -> str
def greet(name) {
    return f"Hello, {name}!"
}
1/27/2023, 4:08:11 PM
pkmnq:

By the way your syntax is good, it’s just that the arrow reminded me of Haskell

1/27/2023, 4:08:33 PM