Skip to content

Commit

Permalink
README updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarring committed Oct 15, 2013
1 parent 4904f02 commit 150e52a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions examples/rubyish/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Features:
- interpolating strings: "number #{37+5}" %Q{Hello #{planet}!}
- quoted words: `%w[aa bb cc]`
- scoping, including $globals, @class_instance and @@package variables
- conditional blocks: if ... then ... elsif ... else ... endif
- conditional blocks: `if ... then ... elsif ... else ... endif`
- begin .. end blocks
- nqp opcode calls
- a few built-ins: abort, print, puts, sleep
- infixish assigments: += -= *= ...
- nqp opcode calls: `nqp::sleep(5)`
- a few built-ins: `abort`, `print`, `puts`, `sleep`
- infixish assigments: `+=` `-=` `*=` ...
- very simple classes and objects with attributes. no inheritence yet
- while and until loops
- statement modifiers `if` `unless`, `while`, `until` e.g.: `puts 42 if `
- `while` and `until` loops
- statement modifiers `if` `unless`, `while`, `until` e.g.: `puts 42 if true`
- basic arrays and hashes
- for loops on arrays: `for val in [10,20,30] do puts val end`
- for loops on hash keys: `h = {'a'=>10, 'b'=>20}; for k in h do puts h{k} end`
Expand All @@ -47,7 +47,7 @@ Expressions are Perlish rather than Rubyish:
- `~` has been introduced as the concatenation operator
- `>`, `==`, `<=` ... only do arithmetic comparisons
- `gt`, `eq`, `le` ... do string comparisions
- 0, '0', '' are false in a boolean context.
- 0, '0', '', nil are false in a boolean context.
- hash dereferencing is via angle braces: `price = fruit<apples>` or
curly brackets `puts fruit{'bannanas'}`

Expand Down

0 comments on commit 150e52a

Please sign in to comment.