-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
compiler:inferenceType inferenceType inference
Description
Recurring through tuples with first
and Base.tail
is incredibly useful but tail doesn't do constant propagation. I tracked the issue down to argtail
in Base, which needs a pure annotation to do constant propagation correctly.
Base.@pure argtail(x, rest...) = rest
In fact, constant propagation never seems to survive slurping without pure annotations. This seems like a useful feature to have.
andyferrisandyferris
Metadata
Metadata
Assignees
Labels
compiler:inferenceType inferenceType inference