I still remember my horror when I saw the pain of something as simple as string concatenation in Objective-C. The community literally has to write special micros to make joining a string palatable [1]. I salute the brave souls who made OSX/iOS apps before Swift. NSString *myString = @"Hello"; NSString *second = [myString stringByAppendingString:@" World"]; [1]: https://stackoverflow.com/questions/510269/shortcuts-in-…
Actually, I'm glad its a method with a long-ish name. Operator-overloaded string concatenation makes something that can ruin your performance look innocent. Also, I've never heard of any serious iOS/macOS dev complaining about this.
Objective-S: architecture-oriented language based on Smalltalk and Objective-C
21–30 of 130 posts
Re: Objective-S: architecture-oriented language based on Smalltalk and Objective-C
#22Re: Objective-S: architecture-oriented language based on Smalltalk and Objective-C
#23I still remember my horror when I saw the pain of something as simple as string concatenation in Objective-C. The community literally has to write special micros to make joining a string palatable [1]. I salute the brave souls who made OSX/iOS apps before Swift. NSString *myString = @"Hello"; NSString *second = [myString stringByAppendingString:@" World"]; [1]: https://stackoverflow.com/questions/510269/shortcuts-in-…
NSString *foo = [@"foo" stringByAppendingString:@"bar"]; It's not that bad.
"foo" + "bar"Re: Objective-S: architecture-oriented language based on Smalltalk and Objective-C
#24> By allowing general architectures, Objective-S is the first general purpose programming language. Really? I stopped reading at this spot, since this claim is so ridiculous. https://en.wikipedia.org/wiki/General-purpose_programming_la...
Re: Objective-S: architecture-oriented language based on Smalltalk and Objective-C
#25Earlier quoted context omitted.
You might try reading further, because the claim is actually well-supported. Just because we call something "general purpose" doesn't mean it actually is.
If you can build Objective-S in a language then isn't the language that contains the set of Objective-S and other languages in theory more general purpose? I'm not sure I get the definition.
Re: Objective-S: architecture-oriented language based on Smalltalk and Objective-C
#26> By allowing general architectures, Objective-S is the first general purpose programming language. Really? I stopped reading at this spot, since this claim is so ridiculous. https://en.wikipedia.org/wiki/General-purpose_programming_la...
You might try reading further, because the claim is actually well-supported. Just because we call something "general purpose" doesn't mean it actually is.
Re: Objective-S: architecture-oriented language based on Smalltalk and Objective-C
#27Re: Objective-S: architecture-oriented language based on Smalltalk and Objective-C
#28> By allowing general architectures, Objective-S is the first general purpose programming language. Really? I stopped reading at this spot, since this claim is so ridiculous. https://en.wikipedia.org/wiki/General-purpose_programming_la...
You might try reading further, because the claim is actually well-supported. Just because we call something "general purpose" doesn't mean it actually is.
What we currently call general purpose languages are actually domain specific languages for the domain of algorithms.Re: Objective-S: architecture-oriented language based on Smalltalk and Objective-C
#29I still remember my horror when I saw the pain of something as simple as string concatenation in Objective-C. The community literally has to write special micros to make joining a string palatable [1]. I salute the brave souls who made OSX/iOS apps before Swift. NSString *myString = @"Hello"; NSString *second = [myString stringByAppendingString:@" World"]; [1]: https://stackoverflow.com/questions/510269/shortcuts-in-…
Agreed. But once you get some macros (or categories) then Objective-C becomes a great language. Is both elegant and very powerful as it is has the perfect balance between a static and a dynamic language. Swift on the other had is a language where wonks decided to throw every silly feature they thought off to the point that is becoming more complex than even Scala. I wished Swift was just a modernized Objective-C with…
What features in particular do you think represent unjustified complexity?
Swift is not my favorite, but I wouldn’t consider it to be a “kitchen-sink” language, and it’s certainly less complicated than Scala.
Re: Objective-S: architecture-oriented language based on Smalltalk and Objective-C
#30Earlier quoted context omitted.
You might try reading further, because the claim is actually well-supported. Just because we call something "general purpose" doesn't mean it actually is.
I read the rest of the About page and didn't see anything supporting this claim. What makes Objective-S more general than other languages? If it's the four architecture "styles" listed, I'm pretty sure other languages can do the same: * OO and Call/Return: Supported by every OO language. * Pipes and Filters: Supported by every functional programming language. * REST: Supported by many modern languages. (Go springs to…