Skip to content

Commit

Permalink
Start implementing whitespace decision
Browse files Browse the repository at this point in the history
  • Loading branch information
aphillips committed Oct 9, 2023
1 parent 03cfaae commit bf7bf00
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions exploration/beauty-contest.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ Hello {$var}, you have a {$foo}
{when * *} {$foo} hello you have a {$var}
{match {$foo :function option=value} {$bar :function option=value}}
{when a b} { {$foo} is {$bar} }
{when x y} { {$foo} is {$bar} }
{when a b} {{ {$foo} is {$bar} }}
{when x y} {{ {$foo} is {$bar} }}
{when * *} {| |}{$foo} is {$bar}{| |}
{input $var :function option=value}{local $foo = $bar :function option=value}Hello {$var}, you have a {$foo}
{match {$foo} {$bar}}{when foo bar} Hello {$foo} you have a {$var}{when * *} {$foo} hello you have a {$var}
{match {$foo :function option=value}{$bar :function option=value}}{when a b} { {$foo} is {$bar} }{when x y} { {$foo} is {$bar} }{when * *} {| |}{$foo} is {$bar}{| |}
{match {$foo :function option=value}{$bar :function option=value}}{when a b} {{ {$foo} is {$bar} }}{when x y} {{ {$foo} is {$bar} }}{when * *} {| |}{$foo} is {$bar}{| |}
```

## 2. Text First, but Always Code After Code-Mode
Expand All @@ -80,23 +80,23 @@ Hello world!
Hello {$user}
{input $var :function option=value}
{Hello {$var}}
{{Hello {$var}}}
{input $var :function option=value}
{local $foo = $bar :function option=value}
{Hello {$var}, you have a {$foo}}
{{Hello {$var}, you have a {$foo}}}
{match {$foo} {$bar}}
{when foo bar} {Hello {$foo} you have a {$var}}
{when * *} {{$foo} hello you have a {$var}}
{when foo bar} {{Hello {$foo} you have a {$var}}}
{when * *} {{{$foo} hello you have a {$var}}}
{match {$foo :function option=value} {$bar :function option=value}}
{when a b} { {$foo} is {$bar} }
{when x y} { {$foo} is {$bar} }
{when a b} {{ {$foo} is {$bar} }}
{when x y} {{ {$foo} is {$bar} }}
{input $var :function option=value}{local $foo = $bar :function option=value}{Hello {$var}, you have a {$foo}}
{input $var :function option=value}{local $foo = $bar :function option=value}{{Hello {$var}, you have a {$foo}}}
{match {$foo} {$bar}}{when foo bar} Hello {$foo} you have a {$var}{when * *}{{$foo} hello you have a {$var}}
{match {$foo} {$bar}}{when foo bar} {{Hello {$foo} you have a {$var}}}{when * *}{{{$foo} hello you have a {$var}}}
{match {$foo :function option=value}{$bar :function option=value}}{when a b} { {$foo} is {$bar} }{when x y} { {$foo} is {$bar} }
```
Expand All @@ -123,15 +123,15 @@ Hello {$var}, you have a {$foo}
#when[ * *] {$foo} hello you have a {$var}
#match {$foo :function option=value} {$bar :function option=value}
#when [a b] \ \ {$foo} is {$bar}\ \
#when [a b] {{ {$foo} is {$bar} }}
#when [x y] {||} {$foo} is {$bar} {||}
#when [* *] {| |}{$foo} is {$bar}{| |}
#{input $var :function option=value}#local $foo = {$bar :function option=value}Hello {$var}, you have a {$foo}
#match {$foo} {$bar}#when[foo bar] Hello {$foo} you have a {$var}#when[* *] {$foo} hello you have a {$var}
#match {$foo :function option=value} {$bar :function option=value}#when [a b] \ \ {$foo} is {$bar}\ \ #when [x y] {||} {$foo} is {$bar} {||}#when [* *] {| |}{$foo} is {$bar}{| |}
#match {$foo :function option=value} {$bar :function option=value}#when [a b] {{ {$foo} is {$bar} }} #when [x y] {||} {$foo} is {$bar} {||}#when [* *] {| |}{$foo} is {$bar}{| |}
```

## 4. Reducing keywords
Expand All @@ -155,8 +155,8 @@ Hello {$var}, you have a {$foo}
::[ * *] {$foo} hello you have a {$var}
?? {$foo :function option=value} {$bar :function option=value}
::[a b] { {$foo} is {$bar} }
::[x y] { {$foo} is {$bar} }
::[a b] {{ {$foo} is {$bar} }}
::[x y] {{ {$foo} is {$bar} }}
::[* *] {| |}{$foo} is {$bar}{| |}
#$var :function option=value}#$foo = {$bar :function option=value}Hello {$var}, you have a {$foo}
Expand Down Expand Up @@ -192,7 +192,7 @@ Hello {$var}
}
Hello {$var}, you have a {$foo}
{
{#
match {$foo} {$bar}
[ foo bar] Hello {$foo} you have a {$var}
[ * *] {$foo} hello you have a {$var}
Expand All @@ -202,8 +202,8 @@ Hello {$var}, you have a {$foo}
input $foo :function option=value
}{
match {$foo :function option=value} {$bar :function option=value}
[a b] { {$foo} is {$bar} }
[x y] { {$foo} is {$bar} }
[a b] {{ {$foo} is {$bar} }}
[x y] {{ {$foo} is {$bar} }}
[* *] {| |}{$foo} is {$bar}{| |}
}
Expand Down

0 comments on commit bf7bf00

Please sign in to comment.