Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Return type of put and get.

Đang mở
#36 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

@Harry2907 đang làm issue này rồi.

Từ ngày 7/7/2026.

  • #50 của @Harry2907 — đang mở

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
arduino, cpp
Lĩnh vực
api, embedded-iot

Hướng nghiên cứu

The issue names the put, get, and putString API entry points but no files or tests. Start by locating those declarations and reviewing the current return-value contract; an agreed API change and its expected behavior would define done.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Subject of the issue

Just wondering why the return type of put is T&? (same for get).
I don't really see why these functions return the value we feed them with.
I wonder if it wouldn't make more sense to have put return the next writable location, kind of like putString.
That way, it would become possible to save structs one after another, by using the returned value as the next address.
Perhaps it would also make sense if get just returned void.
What do you guys think?

Your workbench
  • Not relevant.
Steps to reproduce

Not relevant.

Expected behavior

Not relevant.

Actual behavior

Not relevant.

Ngôn ngữ chính
C++
Star
67
Fork
23
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của sparkfun/SparkFun_External_EEPROM_Arduino_Library

Tất cả issue của sparkfun/SparkFun_External_EEPROM_Arduino_Library

Issue tương tự

Thêm issue về C++

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.