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

Add a prelude module for easy global imports of common stuff #10

Closed
mitchmindtree opened this issue Oct 18, 2017 · 0 comments · Fixed by #23
Closed

Add a prelude module for easy global imports of common stuff #10

mitchmindtree opened this issue Oct 18, 2017 · 0 comments · Fixed by #23
Assignees
Milestone

Comments

@mitchmindtree
Copy link
Member

  • SimpleWindowEvents
  • ElementState
  • App
  • Event
  • WindowEvent
@mitchmindtree mitchmindtree changed the title Add a Prelude Add a prelude module for easy global imports of common stuff Oct 18, 2017
@freesig freesig added this to the Basics milestone Oct 18, 2017
mitchmindtree added a commit to mitchmindtree/nannou that referenced this issue Oct 18, 2017
This addresses and closes nannou-org#5.

The examples have been updated and currently do a glob import e.g.

```rust
use nannou::event::SimpleWindowEvent::*;
```

However this will probably get removed soon in favour of adding these
variants to the prelude (see nannou-org#10).
mitchmindtree added a commit to mitchmindtree/nannou that referenced this issue Oct 19, 2017
This should simplify the process of kicking off a project with nannou.

At the moment I've just picked a few items which are already showing up
often in the examples. I don't have a particular rule in mind yet for
the kinds of items that should/shouldn't be added to the prelude. Maybe
we can come up with a set of rules for this, but for now I'm sure we
should be able to pick these pretty intuitively.

I guess this can be thought of as a more conservative `#include
ofMain.h` or Processing's list auto-included items and keywords.

This closes nannou-org#10.
@mitchmindtree mitchmindtree self-assigned this Oct 19, 2017
@mitchmindtree mitchmindtree modified the milestones: Basics, Announce Apr 1, 2018
mitchmindtree added a commit to mitchmindtree/nannou that referenced this issue Mar 30, 2020
Fix some panics in the optimization passes
mitchmindtree added a commit to mitchmindtree/nannou that referenced this issue Mar 31, 2020
Fix broken link to tutorials section from welcome section, Fix warnings in create_a_project code snippet
mitchmindtree pushed a commit to mitchmindtree/nannou that referenced this issue May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants