The Apples in Stereo 1991-1993: The Apples
What is The Apples?
What is The Apples?
In late 1991, Robert Schneider met Jim McIntyre on a commuter bus in Denver, Colorado. Schneider had recently moved to Colorado from Ruston, Louisiana, and often initiated conversations with McIntyre. When Schneider asked McIntyre what his music interests were, McIntyre named his favorite band: The Beach Boys -- a band Schneider was particularly fond of. Realizing that they shared many musical interests, McIntyre introduced Schneider to Hilarie Sidney. McIntyre already had a band called Von Hemmling in which McIntyre played bass and Sidney played drums. With Schneider, they discussed the idea of starting a band and perhaps a recording label. Schneider later met Chris Parfitt, who was also already in a band at the time that Schneider unsuccessfully auditioned for on bass. Schneider and Parfitt also became friends, however, and toyed with the idea of having a rock band similar to The Velvet Underground or Black Sabbath, with production qualities similar to that of The Beach Boys.  Schneider then spent two weeks in Athens, Georgia recording music and spending time with his childhood friends Will Cullen Hart, Bill Doss and Jeff Mangum. He discussed the idea of starting a record label with them (which soon became The Elephant 6 Recording Company). It was also at this time that the name "The Apples" came about, inspired by the Pink Floyd song "Apples and Oranges".  The earliest incarnation of the band began to form in 1992 upon Schneider's return to Denver, first between Schneider and Parfitt, both of whom played guitar. The two recruited McIntyre and Sidney during the autumn of that year, practicing material through the winter. Their first few live shows took place the following January, many of which were with the band Felt Pilotes. From February to April 1993, the band recorded their debut 7" EP, Tidal Wave, and released it in June as the first record ever to bear the Elephant 6 logo. CANNOTANSWER
Robert Schneider met Jim McIntyre
The Apples in Stereo, styled as The Apples in stereo, are an American rock band associated with Elephant Six Collective, a group of bands also including Neutral Milk Hotel, The Olivia Tremor Control, Elf Power, Of Montreal, and Circulatory System. The band is largely a product of lead vocalist/guitarist/producer Robert Schneider, who writes the majority of the band's music and lyrics. Currently, The Apples in Stereo also includes longstanding members John Hill (rhythm guitar) and Eric Allen (bass), as well as more recent members John Dufilho (drums), John Ferguson (keyboards), and Ben Phelan (keyboards/guitar/trumpet).

The band's sound draws comparisons to the psychedelic rock of The Beatles and The Beach Boys during the 1960s, as well as to bands such as Electric Light Orchestra and Pavement, and also draws from lo-fi, garage rock, new wave, R&B, bubblegum pop, power pop, punk, electro-pop and experimental music.

The band is also well known for their appearance in a The Powerpuff Girls music video performing the song "Signal in the Sky (Let's Go)". It aired immediately after the show's seventh episode of season 4, "Superfriends", which was based on the song's lyrics. The band has appeared widely in television and film, including performances on The Colbert Report, Late Night with Conan O'Brien and Last Call with Carson Daly, guest hosting on MTV, song placements in numerous television shows, commercials and motion pictures, the performance of the single "Energy" by the contestants on American Idol, and a song recorded for children's show Yo Gabba Gabba.

Band history

1991–1993: The Apples 
In late 1991, Robert Schneider met Jim McIntyre on a commuter bus in Denver, Colorado. Schneider had recently moved to Colorado from Ruston, Louisiana, and often initiated conversations with McIntyre.  When Schneider asked McIntyre what his music interests were, McIntyre named his favorite band: The Beach Boys — a band Schneider was particularly fond of.  Realizing that they shared many musical interests, McIntyre introduced Schneider to Hilarie Sidney.  McIntyre already had a band called Von Hemmling in which McIntyre played bass and Sidney played drums. With Schneider, they discussed the idea of starting a band and perhaps a recording label.  Schneider later met Chris Parfitt, who at the time was also already in a band (which Schneider unsuccessfully auditioned for on bass). Schneider and Parfitt also became friends, however, and toyed with the idea of having a rock band similar to The Velvet Underground or Black Sabbath, with production qualities similar to that of The Beach Boys.

Schneider then spent two weeks in Athens, Georgia recording music and spending time with his childhood friends Will Cullen Hart, Bill Doss and Jeff Mangum. He discussed the idea of starting a record label with them (which soon became The Elephant 6 Recording Company). It was also at this time that the name "The Apples" came about, inspired by the Pink Floyd song "Apples and Oranges".

The earliest incarnation of the band began to form in 1992 upon Schneider's return to Denver, first between Schneider and Parfitt, both of whom played guitar.  The two recruited McIntyre and Sidney during the autumn of that year, practicing material through the winter.  Their first few live shows took place the following January, many of which were with the band Felt Pilotes. From February to April 1993, the band recorded their debut 7" EP, Tidal Wave, and released it in June as the first record ever to bear the Elephant 6 logo.

1994–1995: Hypnotic Suggestion and Fun Trick Noisemaker 
Several conflicts would lead Parfitt to leave the band in early 1994. John Hill, a former bandmate of McIntyre's, would join the band as a rhythm guitarist while Schneider began to grow more comfortable playing lead guitar. It was also at this time that Schneider began to take stronger creative control of the band, shifting its sound from its stronger rock qualities to a spacier pop sound. The band started work on a debut album, but it instead became Hypnotic Suggestion, a second EP. However, after SpinART Records offered to buy the band an 8-track in return for an album, new plans for an LP arose.

In mid-1994, after Hypnotic Suggestion, McIntyre would be the second to leave the band, due to a number of personal distresses as well as stylistic changes that arose with Parfitt's departure. Having great difficulty finding a new permanent bassist, the band would rotate a number of frequent bass contributors, including Jeff Mangum of Neutral Milk Hotel, Kurt Heasley of The Lilys, Kyle Jones, Joel Richardson, and Joel Evans. Jim McIntyre would also occasionally guest on bass.  This continued to be the makeup of the band as they toured the country in late 1994, recording the first half of their new album in Glendora, California.  In early 1995, the band finished the album, Fun Trick Noisemaker, at Kyle Jones's house (the birthplace of Schneider's Pet Sounds Studio).

Now with a LP to support, the band began touring again. Eric Allen, whom the band had previously auditioned as a guitarist after the departure of Chris Parfitt, joined the band as a much welcomed permanent bassist. Late 1995, Schneider relocated Pet Sounds Studio to Jim McIntyre's house. McIntyre continued to be involved in the recording and engineering of the band's albums until the mid-2000s.

A significantly different band from the original 1992 four-piece, the official name of the band gradually became "The Apples in Stereo", with the "in stereo" usually somewhat under-emphasized, whether in lower-case or in parentheses.  Schneider described this in an interview: "It's very clearcut, actually: we're The Apples, the music's in stereo.  It's not actually the band name – it's a step back from it, a band name once removed. We're The Apples, in stereo. Kind of like a TV show, 'in stereo!'  That always seemed to be a really big deal, that it was in stereo." McIntyre later remarked, "It's cool the name changed cause the Apples and the Apples in Stereo were really two different entities."

1996–2005: Tone Soul Evolution to Velocity of Sound
The band continued touring through 1996, playing in Japan for the first time. Several early recording sessions were held at Pet Sounds for the band's second album, Tone Soul Evolution, but the members were dissatisfied with the quality of the recordings. The majority of the album's songs were re-recorded at Studio .45 in Hartford, Connecticut before the album's release. In 1998, Chris McDuffie joined the band, playing various instruments including organs, synthesizers and assorted percussion. He would leave the band before Velocity of Sound was released in 2002.

Several more albums were released by the band through the years, including the psychedelic "concept EP", Her Wallpaper Reverie, The Discovery of a World Inside the Moone and Velocity of Sound; both of the latter of which were progressively aimed at capturing the live sound of the band, which continued to tighten as they continued to perform hundreds of live shows (about 100 a year). In particular, the 2002 album Velocity of Sound rejects most of the psych-pop production sensibilities that would come to be associated with the band, instead featuring stripped-down production and sparse, rock instrumentation.

The band members would also continue to pursue careers in side bands and solo projects, with Schneider producing several albums for Elephant 6 artists. Schneider and drummer Hilarie Sidney were married for a time, with a son Max born in 2000. They have since been divorced.

The band went on a brief hiatus during 2004 as Schneider released the debut album from a new band called Ulysses and Sidney released the debut album from her new band The High Water Marks; both were released on Eenie Meenie Records. In 2005, The Apples in Stereo contributed "Liza Jane" to the Eenie Meenie compilation, Dimension Mix. It was also around this time that news began to circulate among various websites concerning the band's next studio album.

2006–2008: New Magnetic Wonder and evolving lineup

In August 2006, longtime drummer Hilarie Sidney officially announced her departure from the band during the band's closing set at the Athens Popfest music festival in Athens, Georgia. Her replacement, John Dufilho, lead singer and principal songwriter of The Deathray Davies, was announced in October 2006. 2006 touring member Bill Doss of The Olivia Tremor Control also quietly joined the band "officially" as its new keyboardist. John Ferguson of Big Fresh and Ulysses joined the Apples in 2007, also playing keyboards, and wearing a Doctor Who-esque space suit on stage.

In December 2006, Robert Schneider appeared on the popular television show The Colbert Report singing the song "Stephen Stephen" recorded by The Apples in Stereo to glorify the show's host Stephen Colbert, to kick off a guitar solo contest between Colbert and Chris Funk of The Decemberists.

On February 6, 2007, The Apples in Stereo released their sixth studio LP, New Magnetic Wonder. Finishing a ten-year deal with spinART Records, New Magnetic Wonder was the premiere release on Simian Records, a newly formed record label founded by Elijah Wood. This was followed by a long-awaited b-sides and rarities compilation titled Electronic Projects for Musicians, released on April 1.

In 2008, spinART Records went out of business. Rights for all major releases by The Apples in Stereo on the label were subsequently acquired by One Little Indian Records, and have since reverted to the band. In a recent interview, Schneider noted that the band's EPs have yet to have been re-released, but will likely be collected for another compilation. Such a compilation would probably include the re-releases of Look Away + 4, Let's Go! and a number of non-album songs released alongside New Magnetic Wonder.

On August 4, 2008, the band appeared again on The Colbert Report. They performed their song Can You Feel It? to promote the release of the Japanese picture disc.

In early 2008, their song "Same Old Drag" won in The 7th Annual Independent Music Awards for Best Pop/Rock Song. The same year Apples in Stereo were nominated for Independent Music Awards Pop/Rock Album of the Year. The band members also joined the 9th annual Independent Music Awards judging panel to assist independent musicians' careers.

2009–2011: #1 Hits Explosion and Travellers in Space and Time

Yep Roc released #1 Hits Explosion, an Apples in Stereo best-of album, on September 1, 2009.

In late 2008, PepsiCo released an advertisement with their song "Energy" off of their album New Magnetic Wonder.

In early 2009, Robert appeared on ABC News's segment called "amplified" and gave some short performances of songs from New Magnetic Wonder and a song from his project "Robert Bobbert and the bubble machine" and he described the album as sounding like early 1970s R&B as it would sound played by aliens and emanating from an alien spaceship.He also confirmed that the band was recording their new album at Trout Recording in Brooklyn, New York. In interviews in Billboard magazine and other press outlets,

In April 2009, the single "Energy" from New Magnetic Wonder was performed by the contestants on the television show American Idol.

The result was the band's seventh album Travellers in Space and Time, released on April 20, 2010 on Simian Records. Described by Schneider as a "retro-futuristic" concept album intended as a time capsule for listeners of the future, Travellers has drawn comparisons to the style of Electric Light Orchestra. The record is the first Apples in Stereo album without Hilarie Sidney, making Schneider the last founding member remaining in the group, although John Hill joined before "in stereo" was added to the name. The band was invited by Jeff Mangum of Neutral Milk Hotel to perform at the All Tomorrow's Parties festival that he curated in March 2012 in Minehead, England.

Schneider announced in May 2012 that The Apples in Stereo had begun work on a new album, described as being "a very, very different sort of album."

In recent years, Schneider has explored a number of experimental music projects, such as the Teletron mind-controlled synthesizer and Non-Pythagorean scale of his own invention.

2012–present: Death of Bill Doss, hiatus and future
The death of Bill Doss, the band's keyboardist as well as the co-founder of fellow Elephant 6 band The Olivia Tremor Control, was announced on July 31, 2012. The cause of death was an aneurysm. Schneider released a statement saying, "I am heartbroken by the loss of my life-long friend, collaborator and band-mate. My world will never be the same without the wonderful, funny, supremely creative Bill Doss."

The band went into hiatus in the fall of 2012, after Doss' death and Schneider's acceptance into the PhD program in Mathematics at Emory University. In 2013, Phish started covering the Apples in Stereo song "Energy."

In early 2017, Schneider hinted at a new album called The Bicycle Day. He stated on Facebook that "Apples are working on a concept record called The Bicycle Day but it is too deep of a task to finish while I'm in graduate school... it isn't a pop record though ... (Air-Sea Dolphin and my band Spaceflyte with John Ferguson are the new pop projects though)". On August 10, 2017, the Apples played their first show since 2012 as a headlining act at the Athens Popfest music festival in Athens, Georgia with Marshmallow Coast, Antlered Auntlord, and Waxahatchee as prior performers.

In 2018, Schneider received a PhD in mathematics from Emory.

Band members 
Current members                                          
 Robert Schneider - guitar, French horn, lead vocals (1992–present)
 John Hill - guitar, xylophone (1994–present)
 Eric Allen - bass, harmonica (1995–present)
 John Dufilho - drums, harp (2006–present)
 John Ferguson - vocals, keyboards, panflute (2007–present)

Former members
 Hilarie Sidney - drums, vocals (1992-2006)
 Jim McIntyre - bass (1992-1994)
 Chris Parfitt - guitar (1992-1994)
 Chris McDuffie - keyboards (1998-2002)
 Bill Doss - vocals, keyboards, ukulele (2006-2012; died 2012)

Timeline

Selected discography 

 Fun Trick Noisemaker (1995)
 Science Faire (1996)
 Tone Soul Evolution (1997)
 Her Wallpaper Reverie (1999)
 The Discovery of a World Inside the Moone (2000)
 Velocity of Sound (2002)
 New Magnetic Wonder (2007)
 Electronic Projects for Musicians (2008)
 Travellers in Space and Time (2010)

References

External links 
 
 The Apples in Stereo at Elephant6.com
 Tractor Beam Management
 
 Apples in Stereo entry at Trouser Press
 The Apples in Stereo at Live Music Archive
 Interview with the Cornell Daily Sun
 Step Through the Portal

The Elephant 6 Recording Company artists
Musical groups from Denver
Lo-fi music groups
Musical groups established in 1992
Independent Music Awards winners
Indie pop groups from Colorado
Indie rock musical groups from Colorado
Psychedelic pop music groups
American power pop groups
SpinART Records artists
Yep Roc Records artists
In computer programming, string interpolation (or variable interpolation, variable substitution, or variable expansion) is the process of evaluating a string literal containing one or more placeholders, yielding a result in which the placeholders are replaced with their corresponding values. It is a form of simple template processing or, in formal terms, a form of quasi-quotation (or logic substitution interpretation). The placeholder may be a variable name, or in some languages an arbitrary expression, in either case evaluated in the current context.

String interpolation is an alternative to building string via concatenation, which requires repeated quoting and unquoting; or substituting into a printf format string, where the variable is far from where it is used. Compare:
apples = 4
print("I have ${apples} apples.") # string interpolation
print("I have " + apples + " apples.") # string concatenation
printf("I have %s apples.", apples) # format string

Two types of literal expression are usually offered: one with interpolation enabled, the other without. Non-interpolated strings may also escape sequences, in which case they are termed a raw string, though in other cases this is separate, yielding three classes of raw string, non-interpolated (but escaped) string, interpolated (and escaped) string. For example in Unix shells, single-quoted strings are raw, while double-quoted strings are interpolated. Placeholders are usually represented by a bare or a named sigil (typically $ or %), e.g. $apples or %apples, or with braces, e.g. {apples}, sometimes both, e.g. ${apples}. In some cases additional formatting specifiers can be used (as in printf), e.g. {apples:3}, and in some cases the formatting specifiers themselves can be interpolated, e.g. {apples:width}. Expansion of the string usually occurs at run time.

Language support for string interpolation varies widely. Some languages do not offer string interpolation, instead using concatenation, simple formatting functions, or template libraries. String interpolation is common in many programming languages which make heavy use of string representations of data, such as Apache Groovy, Julia, Kotlin, Perl, PHP, Python, Ruby, Scala, Swift, Tcl and most Unix shells.

Algorithms 
There are two main types of expand variable algorithms for variable interpolation:
 Replace and expand placeholders: creating a new string from the original one, by find-replace operations. Find variable-reference (placeholder), replace it by its variable-value. This algorithm offers no cache strategy.
 Split and join string: splitting the string into an array, and merging it with the corresponding array of values; then join items by concatenation. The split string can be cached to reuse.

Security issues 
String interpolation, like string concatenation, may lead to security problems. If user input data is improperly escaped or filtered, the system will be exposed to SQL injection, script injection, XML External Entity Injection (XXE), and cross-site scripting (XSS) attacks.

An SQL injection example:
 query = " "
If $id is replaced with "'; ", executing this query will wipe out all the data in Table.

Examples 
The following Perl code  works identically in PHP:
$name = "Alice";
print "${name} said Hello World to the crowd of people.";
produces the output: Alice said Hello World to the crowd of people.

ABAP 

DATA(apples) = 4.
WRITE |I have { apples } apples|.The output will be:I have 4 apples

Bash 

apples=4
echo "I have $apples apples"
# or
echo "I have ${apples} apples"
The output will be:
I have 4 apples

Boo 

apples = 4
print("I have $(apples) apples")
# or
print("I have {0} apples" % apples)
The output will be:
I have 4 apples

C# 

var apples = 4;
var bananas = 3;

Console.WriteLine($"I have {apples} apples");
Console.WriteLine($"I have {apples + bananas} fruits");

The output will be:
I have 4 apples
I have 7 fruits

ColdFusion Markup Language 

ColdFusion Markup Language (CFML) script syntax:
apples = 4;
writeOutput("I have #apples# apples");

Tag syntax:
<cfset apples = 4>
<cfoutput>I have #apples# apples</cfoutput>

The output will be:

CoffeeScript 

apples = 4
console.log "I have #{apples} apples"
The output will be:
I have 4 apples

Dart 

int apples = 4, bananas = 3;
print('I have $apples apples.');
print('I have ${apples+bananas} fruit.');
The output will be:
I have 4 apples.
I have 7 fruit.

Go 

, Go does not have string interpolation. There have been some proposals for string interpolation in the next version of the language, Go 2. Instead, Go uses printf format strings in the fmt.Sprintf function, string concatenation, or template libraries like text/template.

Groovy 

In groovy, interpolated strings are known as GStrings:
def quality = "superhero"
final age = 52
def sentence = "A developer is a $quality, if he is ${age <= 42 ? "young" : "seasoned"}"
println sentence
The output will be:
A developer is a superhero if he is seasoned

Haxe 

var apples = 4;
var bananas = 3;
trace('I have $apples apples.');
trace('I have ${apples+bananas} fruit.');
The output will be:
I have 4 apples.
I have 7 fruit.

Java 

, Java does not have interpolated strings, and instead uses format functions, notably the MessageFormat class (Java version 1.1 and above) and the static method String.format (Java version 5 and above).

JavaScript 

JavaScript, as of the ECMAScript 2015 (ES6) standard, supports string interpolation using backticks ``. This feature is called template literals. Here is an example:
const apples = 4;
const bananas = 3;
console.log(`I have ${apples} apples`);
console.log(`I have ${apples + bananas} fruit`);
The output will be:
I have 4 apples
I have 7 fruit

Template literals can also be used for multi-line strings:
console.log(`This is the first line of text.
This is the second line of text.`);

The output will be:
This is the first line of text.
This is the second line of text.

Julia 

apples = 4
bananas = 3
print("I have $apples apples and $bananas bananas, making $(apples + bananas) pieces of fruit in total.")
The output will be:
I have 4 apples and 3 bananas, making 7 pieces of fruit in total.

Kotlin 

val quality = "superhero"
val apples = 4
val bananas = 3
val sentence = "A developer is a $quality. I have ${apples + bananas} fruit"
println(sentence)
The output will be:
A developer is a superhero. I have 7 fruit

Nemerle 

def apples = 4;
def bananas = 3;
Console.WriteLine($"I have $apples apples.");
Console.WriteLine($"I have $(apples + bananas) fruit.");
It also supports advanced formatting features, such as:
def fruit = ["apple", "banana"];
Console.WriteLine($<#I have ..$(fruit; "\n"; f => f + "s")#>);
The output will be:
apples
bananas

Next Generation Shell 

The recommended syntax is ${expr} though $var is also supported:
quality = "superhero"
apples = 4
bananas = 3
sentence = "A developer is a $quality. I have ${apples + bananas} fruit"
echo(sentence)
The output will be:
A developer is a superhero. I have 7 fruit

Nim 

Nim provides string interpolation via the strutils module.
Formatted string literals inspired by Python F-string are provided via the strformat module,
the strformat macro verifies that the format string is well-formed and well-typed,
and then are expanded into Nim source code at compile-time.
import strutils, strformat
var apples = 4
var bananas = 3
echo "I have $1 apples".format(apples)
echo fmt"I have {apples} apples"
echo fmt"I have {apples + bananas} fruits"

# Multi-line
echo fmt"""
I have 
{apples} apples"""

# Debug the formatting
echo fmt"I have {apples=} apples"

# Custom openChar and closeChar characters
echo fmt("I have (apples) {apples}", '(', ')')

# Backslash inside the formatted string literal
echo fmt"""{ "yep\nope" }""" 
The output will be:
I have 4 apples
I have 4 apples
I have 7 fruits
I have
4 apples
I have apples=4 apples
I have 4 {apples}
yep
ope

Nix 

let numberOfApples = "4";
in "I have ${numberOfApples} apples"
The output will be:
I have 4 apples

ParaSail 

const Apples := 4
const Bananas := 3
Println ("I have `(Apples) apples.\n")
Println ("I have `(Apples+Bananas) fruit.\n")
The output will be:
I have 4 apples.
I have 7 fruit.

Perl 

my $apples = 4;
my $bananas = 3;
print "I have $apples apples.\n";
print "I have @{[$apples+$bananas]} fruit.\n";  # Uses the Perl array (@) interpolation.
The output will be:
I have 4 apples.
I have 7 fruit.

PHP 

<?php
$apples = 5;
$bananas = 3;
echo "There are $apples apples and $bananas bananas.";
echo "\n";
echo "I have {$apples} apples and {$bananas} bananas.";The output will be:
There are 5 apples and 3 bananas.
I have 5 apples and 3 bananas.

Python 

Python supports string interpolation as of version 3.6, referred to as 
"formatted string literals". Such a literal begins with an f or F before the opening quote, and uses braces for placeholders:
apples = 4
bananas = 3
print(f'I have {apples} apples and {bananas} bananas')
The output will be:
I have 4 apples and 3 bananas

Ruby / Crystal 

apples = 4
puts "I have #{apples} apples"
# or
puts "I have %s apples" % apples
# or
puts "I have %{a} apples" % {a: apples}

The output will be:
I have 4 apples

Rust 

Rust does not have general string interpolation, but provides similar functionality via macros, referred to as "Captured identifiers in format strings", introduced in version 1.58.0, released 2022-01-13.

Rust provides formatting via the std::fmt module, which is interfaced with through various macros such as format!, write!, and print!. These macros are converted into Rust source code at compile-time, whereby each argument interacts with a formatter. The formatter supports positional parameters, named parameters, argument types, defining various formatting traits, and capturing identifiers from the environment.

let (apples, bananas) = (4, 3);
// println! captures the identifiers when formatting: the string itself isn't interpolated by Rust.
println!("There are {apples} apples and {bananas} bananas.");
The output will be:
 There are 4 apples and 3 bananas.

Scala 

Scala 2.10+ has implemented the following string interpolators: s, f and raw. It is also possible to write custom ones or override the standard ones.

The f interpolator is a compiler macro that rewrites a format string with embedded expressions as an invocation of String.format. It verifies that the format string is well-formed and well-typed.

The standard interpolators 
Scala 2.10+'s string interpolation allows embedding variable references directly in processed string literals. Here is an example:
val apples = 4
val bananas = 3
//before Scala 2.10
printf("I have %d apples\n", apples)
println("I have %d apples" format apples)
//Scala 2.10+
println(s"I have $apples apples")
println(s"I have ${apples + bananas} fruits")
println(f"I have $apples%d apples")

The output will be:I have 4 apples

Sciter (tiscript) 

In Sciter any function with name starting from $ is considered as interpolating function and so interpolation is customizable and context sensitive:
var apples = 4
var bananas = 3
var domElement = ...;

domElement.$content(<p>I have {apples} apples</p>);
domElement.$append(<p>I have {apples + bananas} fruits</p>);

Where domElement.$content(<p>I have {apples} apples</p>); gets compiled to this:
domElement.html = "<p>I have " + apples.toHtmlString() + " apples</p>";

Snobol 

   apples = 4 ; bananas = 3
   Output = "I have " apples " apples."
   Output = "I have "  (apples + bananas) " fruit."
The output will be:
I have 4 apples.
I have 7 fruit.

Swift

In Swift, a new String value can be created from a mix of constants, variables, literals, and expressions by including their values inside a string literal. Each item inserted into the string literal is wrapped in a pair of parentheses, prefixed by a backslash.

let apples = 4
print("I have \(apples) apples")The output will be:
I have 4 apples

Tcl 

The Tool Command Language has always supported string interpolation in all quote-delimited strings.

set apples 4
puts "I have $apples apples."
The output will be:
I have 4 apples.

In order to actually format - and not simply replace - the values, there is a formatting function.

set apples 4
puts [format "I have %d apples." $apples]

TypeScript 

As of version 1.4, TypeScript supports string interpolation using backticks ``. Here is an example:
var apples: number = 4;
console.log(`I have ${apples} apples`);
The output will be:
I have 4 apples
The console.log function can be used as a printf function. The above example can be rewritten, thusly:
var apples: number = 4;
console.log("I have %d apples", apples);
The output remains the same.

Visual Basic 
As of Visual Basic 14, String Interpolation is supported in Visual Basic.
 
name = "Tom"
Console.WriteLine($"Hello, {name}")

will print "Hello, Tom".

See also 
 Concatenation
 Improper input validation
 printf format string
 Quasi-quotation
 String literal
 Substitution

Notes 

Programming constructs
Interpolation
Variable (computer science) A comparison of apples and oranges occurs when two items or groups of items are compared that cannot be practically compared, typically because of inherent, fundamental and/or qualitative differences between the items.

The idiom, comparing apples and oranges, refers to the apparent differences between items which are popularly thought to be incomparable or incommensurable, such as apples and oranges. The idiom may also be used to indicate that a false analogy has been made between two items, such as where an apple is faulted for not being a good orange.

Variants

The idiom is not unique to English. In Quebec French, it may take the form  (to compare apples with oranges), while in European French the idiom says  (to compare apples and pears) or  (to compare cabbages and carrots). In Latin American Spanish, it is usually  (comparing potatoes and sweet potatoes) or commonly for all varieties of Spanish  (comparing pears with apples). In some other languages the term for 'orange' derives from 'apple', suggesting not only that a direct comparison between the two is possible, but that it is implicitly present in their names. Fruit other than apples and oranges can also be compared; for example, apples and pears are compared in Danish, Dutch, German, Spanish, Swedish, Croatian, Czech, Romanian, Hungarian, Italian, Slovak, Slovene, Luxembourgish, Serbian, and Turkish. In fact, in the Spanish-speaking world, a common idiom is , that is, to add pears with apples; the same thing applies in Italian () and Romanian (). In Portuguese, the expression is  (compare orange with banana). In Czech, the idiom  literally means 'to mix apples with pears'.

Some languages use completely different items, such as the Serbian  (comparing grandmothers and toads), or the Romanian  (the grandmother and the machine gun);  (the cow and the longjohns); or  (the gypsy and the marker pen), or the Welsh  (as different as honey and butter), while some languages compare dissimilar properties of dissimilar items. For example, an equivalent Danish idiom,  means "What is highest, the Round Tower or a thunderclap?", referring to the size of the former and the sound of the latter. In Russian, the phrase  (to compare warm and soft) is used. In Argentina, a common question is  (What do love and the eye of an axe have in common?) and emphasizes dissimilarity between two subjects; in Colombia, a similar (though more rude) version is common:  (to confuse shit with ointment). In Polish, the expression  is used, meaning "What has (is) gingerbread for a windmill?". In Chinese, a phrase that has the similar meaning is  (), literally meaning "horses and cattles won't mate with each other", and later used to describe things that are totally unrelated and incomparable.

A number of more exaggerated comparisons are sometimes made, in cases in which the speaker believes the two objects being compared are radically different. For example, "oranges with orangutans", "apples with dishwashers", and so on. In English, different fruits, such as pears, plums, or lemons are sometimes substituted for oranges in this context.

Sometimes the two words sound similar, for example, Romanian  (apples with pears) and the Hungarian  (the season with the fashion).

Published comparisons

Scientific

At least two tongue-in-cheek scientific studies have been conducted on the subject, each of which concluded that apples can be compared with oranges fairly easily and on a low budget and the two fruits are quite similar.

The first study, conducted by Scott Sandford of the NASA Ames Research Center, used infrared spectroscopy to analyze both apples and oranges. The study, which was published in the satirical science magazine Annals of Improbable Research, concluded: "... the comparing apples and oranges defense should no longer be considered valid. This is a somewhat startling revelation. It can be anticipated to have a dramatic effect on the strategies used in arguments and discussions in the future."

A second study, written by Stamford Hospital's surgeon-in-chief James Barone and published in the British Medical Journal, noted that the phrase apples and oranges was appearing with increasing frequency in the medical literature, with some notable articles comparing "Desflurane and propofol" and "Salmeterol and ipratropium" with "apples and oranges". The study also found that both apples and oranges were sweet, similar in size, weight, and shape, that both are grown in orchards, and both may be eaten, juiced, and so on. The only significant differences found were in terms of seeds (the study used seedless oranges), the involvement of Johnny Appleseed, and color.

The Annals of Improbable Research subsequently noted that the "earlier investigation was done with more depth, more rigour, and, most importantly, more expensive equipment" than the British Medical Journal study.

Economic
On April Fools' Day 2014, The Economist compared worldwide production of apples and oranges from 1983 to 2013, however noted them to be "unrelated variables".

In teaching the use of units
While references to comparing apples and oranges are often a rhetorical device, references to adding apples and oranges are made in the case of teaching students the proper uses of units. Here, the admonition not to "add apples and oranges" refers to the requirement that two quantities with different units may not be combined by addition, although they may always be combined in ratio form by multiplication, so that multiplying ratios of apples and oranges is allowed. Similarly, the concept of this distinction is often used metaphorically in elementary algebra.

The admonition is really more of a mnemonic, since in general counts of objects have no intrinsic unit and, for example, a number count of apples may be dimensionless or have dimension fruit; in either of these two cases, apples and oranges may indeed be added.

See also

Agree to differ
Ambiguity effect
Categorization
Exception that proves the rule
Falsifiability
Genetic fallacy
Law of identity
Nix v. Hedden, a U.S. Supreme Court case that partially defined "fruit" in the context of import tariffs.
Objection to the consideration of a question
Premise
Rhetorical device
Semantic differential
Umbrella term

References

English-language idioms
Humour
Apples
Oranges (fruit)
Comparisons
Metaphors referring to food and drink