summaryrefslogtreecommitdiffhomepage
path: root/doc/limitations.md
diff options
context:
space:
mode:
authorJohn Bampton <[email protected]>2020-12-19 18:22:08 +1000
committerJohn Bampton <[email protected]>2020-12-19 18:22:08 +1000
commit97eed4493f62da83f81622f5045a5c0db3ef22d2 (patch)
tree5396c8a3a3a76341119d3f86c8e69d4b624f6337 /doc/limitations.md
parent340f1f0094b41c30dc2377cca4a18a6466828091 (diff)
downloadmruby-97eed4493f62da83f81622f5045a5c0db3ef22d2.tar.gz
mruby-97eed4493f62da83f81622f5045a5c0db3ef22d2.zip
feat(CI): add a GitHub Action to lint the Markdown
Run on pull request only Using https://www.npmjs.com/package/markdownlint-cli Lint Markdown for rules: - MD009/no-trailing-spaces - MD012/no-multiple-blanks - MD022/blanks-around-headings - MD031/blanks-around-fences - MD032/blanks-around-lists
Diffstat (limited to 'doc/limitations.md')
-rw-r--r--doc/limitations.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/limitations.md b/doc/limitations.md
index 8ac959b98..f9e81a920 100644
--- a/doc/limitations.md
+++ b/doc/limitations.md
@@ -13,7 +13,6 @@ This document is collecting these limitations.
This document does not contain a complete list of limitations.
Please help to improve it by submitting your findings.
-
## `1/2` gives `0.5`
Since mruby does not have `Bignum`, bigger integers are represented
@@ -72,6 +71,7 @@ rescue => e
raise e
end
```
+
## Fiber execution can't cross C function boundary
mruby's `Fiber` is implemented in a similar way to Lua's co-routine. This
@@ -252,7 +252,7 @@ trace (most recent call last):
## Keyword arguments
mruby keyword arguments behave slightly different from CRuby 2.5
-to make the behavior simpler and less confusing.
+to make the behavior simpler and less confusing.
#### Ruby [ruby 2.5.1p57 (2018-03-29 revision 63029)]
@@ -290,6 +290,7 @@ Ruby outputs `falsy`. mruby outputs `truthy`.
def m(a,(b,c),d); p [a,b,c,d]; end
m(1,[2,3],4) # => [1,2,3,4]
```
+
Destructured arguments (`b` and `c` in above example) cannot be accessed
from the default expression of optional arguments and keyword arguments,
since actual assignment is done after the evaluation of those default