@@ -26,7 +26,8 @@ implementations.
2626
2727Enough pieces exist to write basic runnable programs. There is a type system,
2828but 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
3132The current runtime is an interpreter, but the plan is to eventually add one or
3233more 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+
101104You 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
177180expressions_ . Most of the interesting stuff that Please does involves evaluating
178181keyword expressions.
179182
0 commit comments