Skip to content

Conversation

mariusandra
Copy link
Collaborator

Problem

The word "symbol" means something else in language parsers. Think of Ruby, which has Symbol as a separate class along String (symbols get stored in a global hash table, strings don't), or ECMAScript's Symbol object.

Changes

Renames all symbol-s to pointer-s to see if that makes anything clearer.

Remember, in our case, a "Symbol" is a data structure, which has the following role. In the query select a.timestamp as b from events a, a "symbol" assigned to each part of the query will refer back to the value's source. So in this case "b" will link to "a.timestamp", which will link to the database field of that name, in a linked list of "symbols" or "refs" in this case.

There's also an alternative proposal out there to rename symbols to "refs".

How did you test this code?

Didn't.

@alessiostalla
Copy link

Of the two choices, "pointer" is a bit uncommon. Usually, pointer is reserved for the C/C++ concept of a pointer to a memory address. "Ref" or "reference" is quite common, and I would choose it if there aren't any other considerations (e.g. overlapping with some other domain-specific concept).

Base automatically changed from person-table-joins to master February 28, 2023 07:09
@mariusandra
Copy link
Collaborator Author

There seems to be broad consensus that this name isn't a good choice. Closing the PR.

@mariusandra mariusandra deleted the rename-symbols-to-pointers branch February 28, 2023 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants