Comment

Comment by StrawberryFrog

The documentation has issues, e.gs.

"But remember, the compiler is your friend. He guessed that's what you wanted to return."

Yuk, a compiler is not a cuddly teddy bear, and I really don't want a compiler to "guess", I want it to be very predictable in its behaviour.

add: func(a, b : Int)

Previous function example specifies a return type, why doesn't this one?

The strange little dots

Oh please.

No explanation of why some things seem to be prefix, e.g. "Hi, softer world =)" println() and some are infix, e.g. add(1, 2)

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton