Re: [PATCH net-next v3 4/8] rust: time: Implement addition of Ktime and Delta

From: FUJITA Tomonori
Date: Wed Oct 23 2024 - 07:25:05 EST


On Wed, 23 Oct 2024 12:59:03 +0200
Miguel Ojeda <miguel.ojeda.sandonis@xxxxxxxxx> wrote:

> On Wed, Oct 23, 2024 at 8:51 AM FUJITA Tomonori
> <fujita.tomonori@xxxxxxxxx> wrote:
>>
>> Can we add the above to Documentation/rust/coding-guidelines.rst?
>
> Sounds good to me -- I will send a patch.

Great, thanks!

> Just to confirm, do you mean the whole operators overloading guideline
> that I mentioned elsewhere and what semantics the arithmetic operators
> should have (i.e.to avoid having to repeatedly document why operator
> do "not supposed to wrap" and why we relegate saturating/wrapping/...
> to methods), or something else?

I was only thinking about the guideline for naming (at least as a
starter); your mail in this thread:

https://lore.kernel.org/netdev/CANiq72mbWVVCA_EjV_7DtMYHH_RF9P9Br=sRdyLtPFkythST1w@xxxxxxxxxxxxxx/