Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid of long module paths, make the hierarchy more flat #95

Open
wokalski opened this issue Mar 29, 2019 · 0 comments
Open

Get rid of long module paths, make the hierarchy more flat #95

wokalski opened this issue Mar 29, 2019 · 0 comments
Labels
macOS macOS renderer

Comments

@wokalski
Copy link
Member

wokalski commented Mar 29, 2019

This is not visible when you build the library but extremely annoying when you build an app with Brisk. Currently there are many constants hidden away from the user, like Cocoa.BriskButton.BezelStyle.TexturedRounded while Button.Style.TexturedRounded would be much more optimal. Or maybe even something shorter.

It's also hard to discover. We have many constants like that for Image, Button, Text which need to be organised better. This issue is for finding a systematic way to organise them and implementing this organization.

One interesting technique might be:

type t = Brisk.LongModulePath.ItShouldBeThere.t = 
  | ReexportedValues;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macOS macOS renderer
Projects
None yet
Development

No branches or pull requests

1 participant