Skip to content

Naming of update() #2703

Answered by st-pasha
markfairbanks asked this question in Q&A
Discussion options

You must be logged in to vote

Although it is technically possible to create a variable with any name in Python, including :=, there is no normal way to refer to these variables, so it just wouldn't be very practical. Which is why we gave it a traditional name instead - update(), coming from SQL UPDATE operator. We might also add at some point select() function which would work in the same way as a "bare" j expression.

The issue that you linked suggests function name set(), however, that wouldn't work for Python where set() is a builtin that creates a set object.

This leaves the possibility that R's function can be called update(), but I don't know whether this name would make sense for R users.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by st-pasha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2703 on October 22, 2020 00:00.