AerospaceNU / AerospaceNU/better-engine-control-software

Can we make `ISequence`s const?

Đang mở
#25 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
question
Ngôn ngữ chính
C++
Star
5
Fork
2
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

https://github.com/AerospaceNU/better-engine-control-software/blob/main/src/constants/AllSequences.h

We define our sequences as global variables. Ideally I want some const protection on them so they don't get randomly mutated by some function.

However, this requires us to make `ISequence` methods all const.

I want

- [ ] A good argument as for why we should commit to `ISequence` being const. `ISequence` is an interface, all future deriving classes must now act const as well, should we commit to this design idea?
- [ ] Impl the const

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.