Skip to content

Conversation

@leggebroten
Copy link

@leggebroten leggebroten commented Dec 6, 2023

Add TypedStructCtor to the Plugin section

The TypedStructCtor plugin uses field-level attributes to define constructor functions (new and from) on the struct being defined by TypedStruct

Includes a Livebook demo of how it works

typed_struct_ctor
– Adds validating (new and from) constructor functions.

Try the macro out in real time without having to install or write any of your own code.
All you need is a running instance of Livebook

Run in Livebook

Add TypedStructCtor to the Plugin section

The TypedStructCtor plugin uses field-level attributes to define constructor functions (`new` and `from`) on the struct being defined by `TypedStruct`

Includes a Livebook demo of how it works
@ejpcmac ejpcmac added this to the typed_struct 0.3.1 milestone Dec 29, 2023
@ejpcmac ejpcmac added the T:Documentation Type: Documentation label Dec 29, 2023
@ejpcmac
Copy link
Owner

ejpcmac commented Dec 29, 2023

I’ll take a look at your plugins more in details next week, but it seems to be a wonderful idea :)

@ejpcmac ejpcmac moved this from Backlog to Preparation in ejpcmac’s personal OSS work Oct 24, 2025
@ejpcmac ejpcmac moved this from Preparation to Ongoing in ejpcmac’s personal OSS work Oct 24, 2025
@ejpcmac ejpcmac moved this from Ongoing to Solved in ejpcmac’s personal OSS work Oct 24, 2025
ejpcmac added a commit that referenced this pull request Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T:Documentation Type: Documentation

Projects

Status: Solved

Development

Successfully merging this pull request may close these issues.

2 participants