Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Class Library: Array Library
-
Labels:None
-
Number of attachments :
Description
We've got special syntax,
R -> P
for a constant distribution. I don't think that constant distributions are so important as to need special syntax. All the other distributions make do with factory methods Dist.makeBlock(R), and even constant distributions can also be called Dist.makeConstant(R,P), so ... maybe we could get rid of that arrow and trim the syntax and complexity of the language down a touch?
Issue Links
- is duplicated by
-
XTENLANG-1671
Consider destroying the -> operation
-
I think the syntax had some value when all arrays were defined over distributions, so -> was a useful shorthand for defining the distribution one needed for a local array. I agree that I don't see much value in it now that constant distributions are less important (local arrays are defined over regions, not over distributions).