-
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
Interpolates messages with variables #4
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some tiny nitpicks, looks great :)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
@jonatanklosko @josevalim I think I handled all of your suggestions. I learned a lot in the process; thanks! Can you give it one last check, please? |
] | ||
} | ||
|
||
args ++ [interpolation_node] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You want to avoid appending to the end of the list, because it is expensive. The idea is that you always prepend and at the end you call Enum.reverse
. This will also make operations such as append_string
faster and easier, because you only need to access the head of the list. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. ✅
@josevalim applied your last feedback regarding avoiding appending to the end of a List. I think we're good to now. Want to take a last look? |
This PR adds the feature of interpolated messages.
The interpolation syntax is the same one from KinoDB. One can write a slack interpolated message like this