3 ms·
All in all, I think it's a bit premature to do a "One year where do we go" article the week before WWDC. It is an interesting language, but I've found a couple
by misnome 11y ago
All in all, I think it's a bit premature to do a "One year where do we go" article the week before WWDC.
It is an interesting language, but I've found a couple of things while starting to use it that have driven me crazy, and not really made me want to continue delving; the two that come to mind are
a) Error messages are awful, and often nothing to do with the actual error
b) Was driven crazy trying to append a tuple to a list. E.g.
A tuple of type (Int,String) is expressed (2, "a")
var aTuple : (Int,String) = (2,"Some")
A list of these is
var l : [(Int,String)] = []
This does not work:
l.append((2,"a")) // ERROR: missing argument for parameter #2 in call
This ALSO does not work:
l.append(aTuple)
but this does:
l.append(2,"a")
- msie 11y agoYes, that is inconsistent. I like those languages that have a quality about them where you can guess correctly at how to do something. Orthogonality comes into play here as well as copying from other languages.