abhinav / abhinav/language-thrift
Should `ConstValue` add new constructor from bool ?
- Linguagem predominante
- Haskell
- Estrelas
- 8
- Forks
- 3
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
I find that struct field with default bool value , it will parse the value to Text.
Example:
```
struct Demo{
1: bool flag = false
}
```
It will generate `fieldDefaultValue` with the `ConstLiteral Text srcAnnot`. I think `ConstValue` should add `ConstBool Bool srcAnnot` constructor.
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
Look at the ConstValue type definition in the parser, likely in a module like Language.Thrift.Syntax. Add a ConstBool constructor. Update the parser logic for default values in struct fields to generate this new constructor for boolean literals. Run existing tests to ensure no regressions and add a test for the new behavior.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- haskell
- Domínio
- compilers
- Tipo de issue
- Funcionalidade
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 50/100