3 ms·
Colon already means block in Python, overloading it for type annotations (ala pascal) would make the parser more complex and less error tolerant. Besides it is
by seanmcdirmid 12y ago
Colon already means block in Python, overloading it for type annotations (ala pascal) would make the parser more complex and less error tolerant. Besides it is inconsistent, you really want
def hello(name : string) : io String
The only reason they didn't do that is because colon also means block....