Syntactic support for type aliases by thekid · Pull Request #50 · xp-framework/ast · GitHub
Skip to content

Syntactic support for type aliases - #50

Open
thekid wants to merge 1 commit into
masterfrom
feature/type-alias
Open

Syntactic support for type aliases#50
thekid wants to merge 1 commit into
masterfrom
feature/type-alias

Conversation

@thekid

@thekid thekid commented Oct 26, 2023

Copy link
Copy Markdown
Member

In a nutshell:

use numeric = string|int;

function multiply(numeric $a, numeric $b) {
  return bcmul($a, $b);
}

See also:

@thekid

thekid commented Oct 26, 2023

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant