-
Notifications
You must be signed in to change notification settings - Fork 0
/
atelier.dib
44 lines (35 loc) · 889 Bytes
/
atelier.dib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!csharp
class Language
{
public string Name
{
get;
set;
}
public Language()
{
Name = "C#";
}
}
Language language = new();
string cSharpLanguage = language.Name;
Console.WriteLine($"Hello {language.Name}");
#!fsharp
type Language =
{ Name: string }
static member Default =
{ Name = "F#" }
let language = Language.Default
let fSharpLanguage = language.Name
printfn "Hello %s" language.Name
#!powershell
$Language = @{ Name = "PowerShell" }
$powershellLanguage = $Language.Name
Write-Host -Object "Hello $($Language.Name)"
#!html
<h1>Hello <span id="languages"></span> FTW!</h1>
#!javascript
#!share --from csharp cSharpLanguage
#!share --from fsharp fSharpLanguage
#!share --from powershell powershellLanguage
document.getElementById('languages').innerHTML = `${cSharpLanguage}, ${fSharpLanguage}, ${powershellLanguage}`;