Skip to content

passing &ui to every single method in the entire library #92

Description

@LoganDark

This is just a bit annoying.

Is there any other way this could be done? Perhaps the UI specified during creation could be stored in a field of the struct, like this:

image

That way you wouldn't have to also specify this UI object to every single method you call on that object.

In fact this could be done in a non-breaking way by preserving the original methods which take the &UI argument, and simply deprecating them.

small semver note:
This library is still in version 0 ("rapid prototyping phase"), so you don't need to increment major for breaking changes. Anyone using this library should be doing iui = "~0.3.0" or similar. It is definitely possible to make version 0.4.0 a breaking change. Although deprecating methods now and then removing them in version 1.0.0 would be preferable.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    c-enhancementNew feature or requestc-questionFurther information is requestedp-highHigh Priorityx-help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions