Commit Graph
16 Commits
Author SHA1 Message Date
Bob Nystrom 5fb6186d7d Make constructors just methods.
* Eliminate "new" reserved word.
* Allow "this" before a method definition to define a constructor.
* Only create a default constructor for classes that don't define one.
2015-07-10 09:18:22 -07:00
Thorbjørn Lindeijer c00d6ad694 Added Sequence.each
This is a bit of a style preference since of course you can always write
the same thing with a for loop. However, I think sometimes the code
looks better when using this method.

It also provides an alternative to Sequence.map for cases where you
don't need the resulting list, and one that becomes especially necessary
when Sequence.map is changed to return a new sequence. The example in
the README.md file was using Sequence.map in a way that required this
alternative in that case.
2015-03-31 21:53:29 +02:00
Bob Nystrom 96ceaa528b Allow empty argument list methods.
- Compile them as calls and definitions.
- Use them for call(), clear(), run(), try(), and yield().
- Update the docs.
2015-02-26 23:08:36 -08:00
Bob Nystrom 93a4dd1b64 Update docs to mention compiling as C++. 2015-01-15 21:15:21 -08:00
Bob Nystrom 84ead3bb18 Start sketching out an actual contributor's guide.
- Add AUTHORS file
- Update README to match site docs
2015-01-04 13:36:23 -08:00
Bob Nystrom a8726e6c00 SO MUCH NEW DOCS OH WOW. 2015-01-03 23:27:02 -08:00
Bob Nystrom 2abeb9ad2e Make first example correct (!). Fix #47. 2015-01-02 20:07:43 -08:00
Bob Nystrom 526a84c4d6 Remove pointless newline. 2015-01-02 07:59:31 -08:00
Bob Nystrom 50be5971a4 Fix link to embedding API. 2015-01-01 22:59:38 -08:00
Bob Nystrom d5f68d70f0 Restyle site. 2014-08-19 07:35:20 -07:00
Bob Nystrom 2567c4846e Redesign site. 2014-04-16 08:00:15 -07:00
Bob Nystrom 1cd73e60da Write "Getting Started" page. 2014-04-09 07:53:30 -07:00
Bob Nystrom 97235caf9c Reword code size limit. 2014-02-19 07:14:46 -08:00
Bob Nystrom 95d239cd21 Lots of work on docs. 2014-01-20 21:44:51 -08:00
Bob Nystrom 86d93296ab Fix doc. 2014-01-12 10:58:13 -08:00
Bob Nystrom d332eed048 Start hacking on web site. 2013-11-21 21:38:36 -08:00