Skip to content

Commit 6cdf6a9

Browse files
authored
Merge pull request #70 from mkantor/readme-tweaks
Make some minor README tweaks
2 parents 8c42405 + 4ca9d67 commit 6cdf6a9

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ implementations.
2626

2727
Enough pieces exist to write basic runnable programs. There is a type system,
2828
but it's not wired up in many places yet so mistakes often go unnoticed at
29-
compile time. The standard library is anemic and documentation is lacking.
29+
compile time. The standard library is anemic, documentation is lacking, and
30+
error messages are horrible.
3031

3132
The current runtime is an interpreter, but the plan is to eventually add one or
3233
more backends to allow building native executables.
@@ -94,10 +95,12 @@ Data can be referenced from other places in the program using lookups, like
9495
zh: "世界您好!"
9596
hi: "हैलो वर्ल्ड!"
9697
es: "¡Hola, Mundo!"
97-
default: :en // runtime value is "Hello, World!"
98+
default: :en
9899
}
99100
```
100101

102+
The runtime value of the `default` property will be `"Hello, World!"`.
103+
101104
You can index into the properties of looked-up values:
102105

103106
```
@@ -107,7 +110,7 @@ You can index into the properties of looked-up values:
107110
greeting: "Hello, World!"
108111
}
109112
}
110-
greeting: :deeply.nested.greeting
113+
greeting: :deeply.nested.greeting // "Hello, World!"
111114
}
112115
```
113116

@@ -150,7 +153,7 @@ Here's another example:
150153
```
151154
{
152155
cons: b => a => { :a, :b }
153-
list: 1 cons (2 cons 3) // evaluates to `{ 1, { 2, 3 } }`
156+
list: 1 cons (2 cons 3) // { 1, { 2, 3 } }
154157
}
155158
```
156159

@@ -173,7 +176,7 @@ precedence. Use of parentheses is encouraged.
173176

174177
#### Keywords
175178

176-
The functions and lookups shown above are syntax sugar for _keyword
179+
The functions and lookups shown above are syntax sugars for _keyword
177180
expressions_. Most of the interesting stuff that Please does involves evaluating
178181
keyword expressions.
179182

0 commit comments

Comments
 (0)