3 ms·
This post is lacking in details. What does this mean? >> “It wants to be strongly typed, but at the same time so convenient in type inference, that it falls o
by nextstep 8y ago
This post is lacking in details. What does this mean?
>> “It wants to be strongly typed, but at the same time so convenient in type inference, that it falls over its own feet while trying to grasp simple expressions, and they become too complex to manage. By design.”
What is an example of an expression that is tripping over its own feet?
- mpweiher 8y agoThis is one example: time swiftc too-complex.swift too-complex.swift:1:49: error: expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions let a:[Int] = [1] + [2] + [3] + [4] + [5] + [6] + [7] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ real 1m20.639s user 1m12.459s sys 0m5.249s cat too-complex.swift let a:[Int] = [1] + [2] + [3] + [4] + [5] + [6] + [7]