-
Notifications
You must be signed in to change notification settings - Fork 1
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
Initial Syntax for DefCompute
#398
Comments
ThoughtsThe initial syntax is not enough for these computations. Perhaps a slightly more ambitious syntax, which allows loops with state variables? I suppose we could restrict to forward loops / backward loops. For example:
Another possibility would be a functional style which use recursion instead of imperative loops, and passes state variables as parameters. |
DefCompute
DefCompute
For
And this function.
And example trace would be:
|
Overview
There is a need for a new set of computed columns. Its not clear at this stage the full set of requirements, but an initial idea was to introduce a generic
defcompute
syntax. This would be anAssignment
taking on a form roughly as follows:This then creates a computed column
A
whose contents are calculated by evaluating the expression+ X Y
. Already, in essence, this construct exists withingo-corset
(e.g. for handling inverse columns), but it is not accessible at the source level.Requirements
In addition, we want similar computations for
again
andlast
. The latter is roughly the same asfirst
, but done backwards. Likewise,again
can be computed asperspective && !first
.Traces
The text was updated successfully, but these errors were encountered: