Source comments still say STRICT_REQUIRE raises "under strict" only; since #2502 it raises in every EIGS_STRICT state
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 88/100
- Tipo de issue
- Documentación
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- c
- Área
- documentation
Línea de trabajo
Lee los cuatro comentarios de src/builtins.c:1652, src/builtins.c:1729, src/builtins.c:1798 y src/ext_gfx.c:1289, junto con la definición de STRICT_REQUIRE en src/eigenscript.h:1562-1568 y el comportamiento de #2502. Actualiza los comentarios para describir que type_mismatch se genera en todos los estados EIGS_STRICT; después ejecuta grep -nE 'raises? under strict' src/*.c src/*.h y confirma que ningún comentario de STRICT_REQUIRE o ARG_GUARD describe un comportamiento exclusivo del modo estricto.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Found while verifying #2409 during a stale-issue sweep against main at 98d15c5.
Since #2502 (fixed by #2510, 92b000fc), wrong-typed arguments raise type_mismatch in every EIGS_STRICT state. STRICT_REQUIRE (src/eigenscript.h:1562-1568) now calls rt_error(EK_TYPE, ...) unconditionally. Four comments above its uses still describe the old split behaviour:
src/builtins.c:1652: "so STRICT_REQUIRE: raise under strict, byte-identical otherwise."src/builtins.c:1729: "Coercion shape: raise under strict, unchanged otherwise."src/builtins.c:1798: "Coercion shape: raise under strict, unchanged otherwise."src/ext_gfx.c:1289: "so this raises under strict and does nothing otherwise."
(Line numbers at 98d15c5.) src/builtins.c:1139 also says "raise under strict decode", but it describes json_decode's own strict-decode flag, not this guard. It is out of scope here.
The macro's name says "strict" too, although it no longer depends on strictness. Renaming it is optional and can be decided in the PR.
Done when
- The four comments above describe the guard as raising
type_mismatchin everyEIGS_STRICTstate (#2502), or the guard's behaviour is changed to match them, with a decision recorded. -
grep -nE 'raises? under strict' src/*.c src/*.hlists no comment that describesSTRICT_REQUIREorARG_GUARDas strict-only. Thejson_decodestrict-decode comment atsrc/builtins.c:1139may remain.
- Lenguaje dominante
- C
- Estrellas
- 3
- Forks
- 7
- Merge medio
- 4 h 33 min
- PR fusionados (30 d)
- 156
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de InauguralSystems/EigenScript
-
docs: EigenLua is labelled private in docs/CI.md and consumer_acceptance.sh, but the repo is publicAbiertoarea:docs kind:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
InauguralSystems/EigenScript#2602 ·
Los mantenedores suelen responder en 1 día
-
area:gates kind:gate-defect
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
InauguralSystems/EigenScript#2591 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:stdlib kind:silent-wrong
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
InauguralSystems/EigenScript#2583 ·
Los mantenedores suelen responder en 1 día
-
Freestanding pow: a negative-zero base loses its sign for odd exponentsPosiblemente ocupada @InauguralPhysicist la tomó hoy. Abiertoarea:embed kind:silent-wrong
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
InauguralSystems/EigenScript#2567 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
EIGS_SEED_RANDOM: no test pins a seed outside 32 bitsPosiblemente ocupada @InauguralPhysicist la tomó hoy. Abiertoarea:gates kind:docs-drift kind:gate-defect
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
InauguralSystems/EigenScript#2566 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de InauguralSystems/EigenScript
Issues similares
-
Cyberpunk not listed in readmeAbierto
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Polprzewodnikowy/N64FlashcartMenu#486 · 3 comentarios ·
-
[raygui] update to 5.0Abiertocategory:port-update
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 2 días
-
crash
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100