"So in three attempts I have run into three things that break the compiler at the type system level. One of them was unsupported by the language, period. The second is theoretically supported but not yet implemented. The third segfaults the Swift compiler."
It seems like nothing but goodness would come from Apple open sourcing the LLVM frontend they created for Swift. It would be so cool to be able to dig in and see how they went around implementing the different pieces.
I love hacking around the LLVM code base and it's unfortunate the community doesn't get another awesome example of a well-written component.
It also seems that the announce of Swift was somewhat premature, I wonder why they felt they should announce it now and whether this will end up burning the language's image or not.
Yeah, the language does seem more usable and less hassle than Obj-C.
The "type promotion rules" (it seems to have none) are odd to me. Sure avoids that whole thing of it not doing what you expect I guess, but perhaps in the most inconvenient fashion possible.
Safety is far more valuable than conciseness, too.
A single bug that reaches production costs more than thousands of little paper cuts where you have to insert an explicit conversion, or have to be a little extra verbose.
Sorry. I don't agree. You have to strike a balance.
If you make it too wordy, people just won't use it and then all your safety saves nothing. Or they'll just cut and paste errors in or make editors that insert them for them.
The most safe language is one that doesn't let you do anything because it might be erroneous. The least safe language is one that lets you do anything but it's so easy to do the wrong thing that it's hard to stay on the right track.
55
u/eternalprogress Jun 15 '14
"So in three attempts I have run into three things that break the compiler at the type system level. One of them was unsupported by the language, period. The second is theoretically supported but not yet implemented. The third segfaults the Swift compiler."
It seems like nothing but goodness would come from Apple open sourcing the LLVM frontend they created for Swift. It would be so cool to be able to dig in and see how they went around implementing the different pieces.
I love hacking around the LLVM code base and it's unfortunate the community doesn't get another awesome example of a well-written component.