New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JSON] getBVal -> getBool; getFNum -> getFloat; getNum -> getBiggestInt; add getInt #6504
Conversation
@@ -47,7 +47,7 @@ proc createLoadProc(typeName: NimIdent, identDefs: seq[NimNode]): NimNode = | |||
`cfgIdent`.`fieldNameIdent` = `objIdent`[`fieldName`].getStr | |||
of "int": | |||
body.add quote do: | |||
`cfgIdent`.`fieldNameIdent` = `objIdent`[`fieldName`].getNum().int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't change this. We need to make sure that whatever is in the book continues to work. That's the whole point.
web/bountysource.nim
Outdated
@@ -53,7 +53,7 @@ proc processSupporters(supporters: JsonNode) = | |||
echo("Found ", supporters.elems.len, " named sponsors.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just remove this file please, it lives in the website repo now.
So how about the fields of JsonNode?? Their named str, num, fnum, bval and are exported. I would ask to revert this. |
@konqoro generally fields of JsonNode shouldn't be used directly. |
ok @Yardanico how about properly deprecating these procs without removing them? This change breaks a lot of code out there for no reason. |
@konqoro check the code please, I've deprecated old proc names |
@Yardanico no you didn't code does not compile |
@konqoro are you sure? |
Changed procedure names, so they make more sense now.
Old procedure names are now deprecated.
Also removed bountysource, since it lives in the website repo.