TheBevyFlock / bevy_cli

A Bevy CLI tool.
Apache License 2.0
32 stars 6 forks source link

Add lint: Bad queries #48

Open janhohenheim opened 2 months ago

janhohenheim commented 2 months ago
BD103 commented 1 month ago

This should be lower priority, since an error is already raised when you do this sort of thing.

janhohenheim commented 1 month ago

Hmm?

The real argument imo is that we soon have builtin tools to improve these error messages on the Rust side

BD103 commented 1 month ago

Hmm?

  • Query<&Foo, With<Foo> is not an error
  • Query<Foo> is an error, but an extremely unreadable one that beginners run into nearly immediately.

The real argument imo is that we soon have builtin tools to improve these error messages on the Rust side

Ah, my bad! It's clearly been a while since I've actually used Bevy :)