mitchmindtree

Results 396 comments of mitchmindtree

This should be just about ready! Notable updates: - The template has been moved from the new `sway-test-rs` repo into a new `templates` subdirectory within this repo. This allows us...

@camiinthisthang just cc'd you for review too in case you'd like to take a look at the Sway Book changes!

Excited for this work @eureka-cpu ! I'll just add that we should really avoid emphasizing that `swayfmt.toml` exists at all until it gets pulled out of us. I think it...

> but `msg_sender()` & `msg_amount()` don't belong on the contract type IMO. I think the reason `msg_sender()` and `msg_amount()` in particular belong on the contract is that their values may...

On a related note: perhaps one alternative might be to have a `msg` method on `self`, that returned something like a `ContractMsg` type to more clearly distinguish the set of...

> I just noticed that most likely the type Contract won't have any actual data fields and so passing in self to its methods is not particularly useful While the...

The crate itself is called `piston2d-graphics`, so perhaps there's no need to append the `2d` suffix to the type name here either way?

@bvssvni after having a look, it looks like this would require adding another required method to the `Graphics` trait - is that correct? I'm curious to get your thoughts on...

I guess another alternative is to use the `Image` type by rendering the "plot" to a texture?