Skip to content

Naming Conventions and Organization #34

Discussion options

You must be logged in to vote

Yes, tidying up the names and stuff is planned to be done rather soon (it's been one of the main requirements for 0.x.0 releases).

Some ideas:

  • If the macro can be made into a derive, then indeed it's very likely to become #[derive(ReprC)] (right now it hasn't since ReprC delegates to a CType derive, and a derive macro cannot expand to another derive macro invocation).

    Should it not be possible, then the expected syntax would become #[safer_ffi::repr(C)] (so as to remove the "repr(C) redundancy" of the current annotations).

  • I have recently had an idea of using a helper trait and a type alias to feature nicer paths: we could have repr_c::Box<[T]> Just Work™:

    //! `repr_c` module.
    use in…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zicklag
Comment options

Answer selected by zicklag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants