Support for limited compile-time arithmetic on Val types#22518
Closed
iamed2 wants to merge 1 commit intoJuliaLang:masterfrom
Closed
Support for limited compile-time arithmetic on Val types#22518iamed2 wants to merge 1 commit intoJuliaLang:masterfrom
iamed2 wants to merge 1 commit intoJuliaLang:masterfrom
Conversation
vtjnash
requested changes
Jun 25, 2017
Member
vtjnash
left a comment
There was a problem hiding this comment.
no, but I should have Inference able to do this soon enough :)
Member
|
Very funny. I got a PR open for a Val(2) + Val(1) == Val(3)I've also had a long-standing plan to make a StaticNumbers package to live alongside StaticArrays that does this stuff (e.g. But by far the best plan is as Jameson says - make inference do this propagation automatically :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After this PR:
I was doing inlineable type-stable recursion in AxisArrays but wanted to be able to specify an early terminator. I started with just
decrementbut decided to do+,-, and*in case other use cases came up.