ProtoStructs.jl icon indicating copy to clipboard operation
ProtoStructs.jl copied to clipboard

Easy prototyping of structs

Results 7 ProtoStructs.jl issues
Sort by recently updated
recently updated
newest added

MWE: ```julia @proto mutable struct A F::Int end a = A(1) a.F = "2" #doesn't error ```

Might be nice to print `ProtoStruct`s like the normal struct would be printed

enhancement
good first issue

Hi, I observe the following behavior with `@proto` while the same code works in standard Julia (without the `@proto`). Is this a bug, or is it out of scope for...

enhancement

Right now, you have to set up traits manually to have a way of getting a guaranteed set of fields. The advantage is, that you can easily redefine the trait-function...

See https://github.com/BeastyBlacksmith/ProtoStructs.jl/pull/31#issuecomment-1873115395 for a possible approach to solve this. The order is an implementation detail, so it would be good to avoid this assumption on lines calling `Base.delete_method(the_methods[1])` and `Base.delete_method(the_methods[2])`

Hello, thanks for creating the package. I noticed that the package is not working with docstrings that document the fields of a struct. Is this intended? Best, Felix ```julia using...

bug