Should be able to initialize list of lists with 2d static data without unexpected errors


(Amir Michail) #1

It’s very irritating trying to initialize a list of lists with static data and unpredictably encountering expression too complex errors.

One could then try to incrementally initialize such a list of lists with append for each row say.

Such initialization with simple 2d static data should never result in an expression too complex error.


(Chris Lattner) #2

"Too complex” errors are not an evolution issue, they are an implementation issue. Please feel free to submit PR’s to help improve the implementation!

-Chris

···

On Dec 6, 2015, at 1:26 PM, Amir Michail via swift-evolution <swift-evolution@swift.org> wrote:

It’s very irritating trying to initialize a list of lists with static data and unpredictably encountering expression too complex errors.

One could then try to incrementally initialize such a list of lists with append for each row say.

Such initialization with simple 2d static data should never result in an expression too complex error.