@pure function attribute

My earlier exploration of this topic: Exploratory proposals: Pure & Concurrent