Hacker News new | past | comments | ask | show | jobs | submit login

All of the languages you list have been criticized for adding too many language features.

Go and Rust are two notable new languages which require explicit formatting functions as opposed to relying on special string interpolation syntax.




Well, Rust formatting is magical, unlike that of Go: it has to be because it has type-safe format strings, which can't be expressed in the normal language. But the magic is encapsulated into a macro, so the complexity doesn't leak into the language per se. Someone could write a similar string interpolation macro and replicate Python's feature without modifying the compiler if they wanted--though the fact that nobody has so far indicates to me that it probably isn't needed, as the {} syntax is awfully lightweight already.


Interpolation is one of the features I require in a rapid prototyping language, it is useful every single day and not esoteric.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: