![]() ![]() There must be big commercial interests for whom it is very desirable that stuff won't work together." So you can't just link them together like that. They have a completely different view of the world, how you handle memory. But suppose one is Prolog and the other is C. If the language is in the same family it's OK-if they're imperative languages, that's fine. They use APIs and they link them into the same memory space, which is appallingly difficult and isn't cross-language. Is that how programmers connect things together? No. The Unix pipe mechanism-A pipe B pipe C-is trivially easy to connect things together. ![]() Programmers have been conned into using all these different programming languages and they've been conned into not using easy ways to connect programs together. ![]() When you want to use it in a different project, you just cut and paste this code into your new project. You can just reuse it here, there, and everywhere. If you have referentially transparent code, if you have pure functions-all the data comes in its input arguments and everything goes out and leaves no state behind-it's incredibly reusable. You wanted a banana but what you got was a gorilla holding the banana and the entire jungle. Because the problem with object-oriented languages is they've got all this implicit environment that they carry around with them. Joe Armstrong: "I think the lack of reusability comes in object-oriented languages, not in functional languages. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |