eerolanguage / eero

Eero was a fully binary- and header-compatible dialect of Objective-C, implemented with a modified version of the Apple-sponsored LLVM/clang open-source compiler. It featured a streamlined syntax, Python-like indentation, and other features that improve readability and code safety. It was inspired by languages such as Smalltalk, Python, and Ruby.
https://web.archive.org/web/20171101134337/http://eerolanguage.org/
288 stars 7 forks source link

Feature: String interpolation #36

Open ryanmaxwell opened 11 years ago

ryanmaxwell commented 11 years ago

Have you considered removing the need for [NSString stringWithFormat:...] by creating a way to interpolate strings?

I'm thinking similar to how Ruby/Coffeescript allows this with "My name is #{name}"

Considering how often the compiler complains about incorrect format specifiers (e.g %d instead of %ld), it would be great if you could just look at the type and perform the substitution with the default specifier for the type.