Skip to content

Conversation

alexswan10k
Copy link
Contributor

@alexswan10k alexswan10k commented May 27, 2022

Following on from @ncave's suggestion covered here , and @alfonsogarciacaro's dart spike, this expands the Emit attribute to be supported on types, which will then be output as type decorators when required (function parameters, let bindings, struct definitions, etc).

I have made the design choice to not include any of the wrapped types and let a creator of the binding have full control over this, which also ensures consistency with any create method etc.

@alexswan10k alexswan10k changed the title Working Rust - Support [<Emit(type)>] to assist with binding to built in types May 29, 2022
@alexswan10k alexswan10k marked this pull request as ready for review May 29, 2022 08:59
@alexswan10k alexswan10k changed the title Rust - Support [<Emit(type)>] to assist with binding to built in types Rust - Support [<Emit(type)>] on a type to assist with binding to built in types May 29, 2022
@ncave ncave merged commit 5cfdadb into fable-compiler:snake_island May 29, 2022
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.

2 participants