This is an automated email from the ASF dual-hosted git repository.
harbs pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-docs.git
The following commit(s) were added to refs/heads/master by this push:
new 57598b2 typo
57598b2 is described below
commit 57598b2ddb3933f47e53d7346a445201caaf6fc4
Author: Harbs <[email protected]>
AuthorDate: Thu Jan 13 15:49:01 2022 +0200
typo
---
features/as3/actionscript-vs-typescript.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/features/as3/actionscript-vs-typescript.md
b/features/as3/actionscript-vs-typescript.md
index 46d3822..e583665 100644
--- a/features/as3/actionscript-vs-typescript.md
+++ b/features/as3/actionscript-vs-typescript.md
@@ -36,7 +36,7 @@ While Royale give very high priority to performance, our
philosophy is that besi
## Testing equality
In Javascript, strict equality is recommended (i.e. `===`) instead of "normal"
equality (i.e. `==`). That's because Javascript automatically does a type
coercion before comparing equality and can cause unexpected results.
-Royale generally does not have these problems and bugs caused by using `==` is
extremely rare. That's because types are enforced at compile time and uncertain
values are automatically coerced when assigning the values. Normal equality has
advantages and can be used for automatically evaluating certain types (such as
`XML`). Therefore the general recommendation in ActionScript and Royale is to
use `==` instead of `===`.
+Royale generally does not have these problems and bugs caused by using `==`
are extremely rare. That's because types are enforced at _runtime_ time and
uncertain values are automatically coerced when assigning the values. Normal
equality has advantages and can be used for automatically evaluating certain
types (such as `XML`). Therefore the general recommendation in ActionScript and
Royale is to use `==` instead of `===`.
The exception to this rule is if you are using untyped variables (i.e. `*`)
and need to test for `undefined` to the exclusion of `null`. In that case you
need `foo.baz === undefined`.