Skip to content

Commit 8bcd61e

Browse files
authored
[Chapter] Update introduction with links
* Updating introduction, mostly links * Add a note about other backends
1 parent 180c155 commit 8bcd61e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

text/chapter1.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ Functions enable a simple form of abstraction that can yield great productivity
3838

3939
PureScript is a programming language that aims to address these issues. It features lightweight syntax, which allows us to write very expressive code which is still clear and readable. It uses a rich type system to support powerful abstractions. It also generates fast, understandable code, which is important when interoperating with JavaScript or other languages that compile to JavaScript. All in all, I hope to convince you that PureScript strikes a very practical balance between the theoretical power of purely functional programming and the fast-and-loose programming style of JavaScript.
4040

41+
> Note that PureScript can target other backends, not only JavaScript, but this book focuses on targeting web browser and node environments.
42+
4143
## Types and Type Inference
4244

4345
The debate over statically typed languages versus dynamically typed languages is well-documented. PureScript is a _statically typed_ language, meaning that a correct program can be given a _type_ by the compiler, which indicates its behavior. Conversely, programs that cannot be given a type are _incorrect programs_, and will be rejected by the compiler. In PureScript, unlike in dynamically typed languages, types exist only at _compile-time_ and have no representation at runtime.
@@ -144,7 +146,7 @@ If you get stuck at any point, there are a number of resources available online
144146
- The [PureScript website](https://www.purescript.org) contains links to several learning resources, including code samples, videos, and other resources for beginners.
145147
- [Try PureScript!](https://try.purescript.org) is a website that allows users to compile PureScript code in the web browser and contains several simple examples of code.
146148

147-
If you prefer to learn by reading examples, the `purescript`, `purescript-node`, and `purescript-contrib` GitHub organizations contain plenty of examples of PureScript code.
149+
If you prefer to learn by reading examples, the [purescript](https://github.com/purescript), [purescript-node](https://github.com/purescript-node), and [purescript-contrib](https://github.com/purescript-contrib) GitHub organizations contain plenty of examples of PureScript code.
148150

149151
## About the Author
150152

0 commit comments

Comments
 (0)