HaxeFoundation / haxe.org-comments

Repository to collect comments of our haxe.org websites
2 stars 2 forks source link

[haxe.org/manual] Precedence #100

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Precedence - Haxe - The Cross-platform Toolkit

Haxe is an open source toolkit based on a modern, high level, strictly typed programming language.

https://haxe.org/manual/expression-operators-precedence.html

kintrix007 commented 2 years ago

What does the postfix ! do? The previous page for unary operators said ! can only be used as a prefix operator.

Aurel300 commented 2 years ago

@kintrix007 In the language itself, ! does not do anything, just fails with a compilation error. However, in macros, ! can be used as syntax. For example, here it is used as a null-safe navigation operator.

kintrix007 commented 2 years ago

@kintrix007 In the language itself, ! does not do anything, just fails with a compilation error. However, in macros, ! can be used as syntax. For example, here it is used as a null-safe navigation operator.

Ah, thank you, that explains