def cool() {
  print "That's cool!"
}

Imagine python, but statically typed and with curly braces.

def str greet(str name) {
    return f"Hello, {name}"
}
Jan 22, 2023, 8:00 AM
3 2 4
Jan 27, 2023, 3:55 PM
3 0 2

comments

TypeError: expected cool to return str but it returned NoneType

oh right