Figuring out if a string will round-trip

Abierto
#1,276 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
cpp, yaml
Área
backend

Línea de trabajo

Start by reading the YAML emitter and string representation code to find where scalar values are emitted and how quoting is chosen. The issue asks whether strings such as true and 1.1 can be identified as values that would parse back with a different type; done means the issue has a defined way to make that determination and quotes such strings when emitting them. The thread has had no activity for over a year, so first check whether the work has moved elsewhere.

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

Descripción

enhancement feature help wanted

E.g. if I render a string with the value true or 1.1, when parsed back they become a boolean and a number respectively.
Is there a way to determine if a certain string doesn't round trip and therefore needs quotes added when emitting it?

Lenguaje dominante
C++
Estrellas
6.1k
Forks
2.2k
Merge medio
22 h 2 min
PR fusionados (30 d)
1

Preparar el entorno

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 jbeder/yaml-cpp

Todos los issues de jbeder/yaml-cpp

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.