elixir-explorer / adbc

Apache Arrow ADBC bindings for Elixir
https://arrow.apache.org/adbc/
Apache License 2.0
50 stars 16 forks source link

Doing a little cleanup/refactoring of the C++ source code #4

Closed Qqwy closed 1 year ago

Qqwy commented 1 year ago

This PR makes a few small changes to improve the maintainability of the code. The individual changes are small, but because some of these patterns were repeated many times in the code, quite a few places in the code were modified.

The changes are:

As added benefit, the resulting code is roughly a hundred lines shorter (without sacrificing readability) :blush: .

If you want to view one of these changes separate from the others (e.g. to better understand it): The individual commits have descriptions and each only contain a single change.

cocoa-xu commented 1 year ago

Hi @Qqwy thanks for the cleanup/refactoring. This looks perfect to me!