Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Return type of put and get.

Abierto
#36 2 comentarios 0 reacciones 0 asignados Ver en GitHub

@Harry2907 ya está trabajando en esto.

Desde el 7/7/2026.

  • #50 de @Harry2907 — abierto

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
arduino, cpp
Área
api, embedded-iot

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
C++
Estrellas
67
Forks
23
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de sparkfun/SparkFun_External_EEPROM_Arduino_Library

Todos los issues de sparkfun/SparkFun_External_EEPROM_Arduino_Library

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.