r/ProgrammerHumor • • Aug 26 '20

Python goes brrrr

Post image
59.2k Upvotes

789 comments sorted by

View all comments

152

u/DecisiveVictory Aug 26 '20
scala> s"Scala goes b${"r" * 10}, too!"
val res1: String = Scala goes brrrrrrrrrr, too!

4

u/Terrain2 Aug 26 '20

console.log(`JavaScript kinda goes b${"r".repeat(10)}`);

operator fun String.times(int other) => this.repeat(other)

void main() => println("Kotlin also kinda goes b${"r"*10} also, but not as elegantly (you have to add it manually)")