News for hackers. Stuff that matters.
Re:Chris Lattner on Swift and dynamic dispatch by mikeash on Sunday December 13, 2015 @08:27AM (#10726290)
If you're using arrays, you've departed from the limited subset in question. They're structs on the outside but complicated on the inside.
Re:Chris Lattner on Swift and dynamic dispatch by mwcampbell on Sunday December 13, 2015 @05:55PM (#10728332)
I wonder why the designers of Swift decided to make arrays structs on the outside but complex on the inside. Why not make them objects, i.e. reference types, as in Java and .NET?
Re:Chris Lattner on Swift and dynamic dispatch by mikeash on Sunday December 13, 2015 @07:22PM (#10728628)
Because having collections be value types makes them really nice to work with.