Re:Mars: a hybrid imperative-declarative higher-order language
by munro on Tuesday July 08, 2014 @01:16PM
(#8005559)
Actually, they could of borrowed from Python 3's type annotation syntax! [1]
[1] http://legacy.python.org/dev/peps/pep-3107/
[ Parent
| on HN ]
Re:Mars: a hybrid imperative-declarative higher-order language
by seanmcdirmid on Tuesday July 08, 2014 @04:58PM
(#8006716)
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....