Re:Nim: Scripting Ease in a Compiled Language
by treeform on Wednesday October 30, 2019 @07:53AM
(#21396652)
Main reason for this feature is that Nim is big as a glue language. Many C/C++ libraries don't have consistent naming conventions between them. I don't want my code to look like a patch work of `__APICALL__(system_call.inspectSomething())` I just want it to look like Nim code: `apiCall(systemCall.inspectSomething())`. This is just a consistent standard on how to turn names in one style into another style backed into a language.
[ Parent
| on HN ]
Re:Nim: Scripting Ease in a Compiled Language
by airstrike on Wednesday October 30, 2019 @11:52AM
(#21399053)
apiCall = __APICALL__
done
Re:Nim: Scripting Ease in a Compiled Language
by beagle3 on Wednesday October 30, 2019 @07:05PM
(#21403947)
So you are writing hundreds of rename rules.
Well, unlike treeform, I like it to be:
api_call(system_call.inspect_something())
Which I find much more readable. What now?