Hi -
(see inline below)
As an exercise at this stage, if I add the following to chapel.lex
":=" return processToken(yyscanner, TASSIGN);
"::" return processToken(yyscanner, TBY);
will that possibly allow me to use
:=
instead of = in most non declarative assignments, i.e. anywhere a "+="
would be legal?
Similarly, can I then play with using "::" instead of "by"?
I think that would work as an experiment, yes.
You'll have to `make parser` after making such changes,
which will require sufficiently new versions of flex and bison.
I can then point my testing compiler at whatever code I can find in the
examples to guage the level of my ignorance/stupidity by seeing what I can
break, or not.
I wouldn't expect much to break because as far as I know, `::` and `:=`
are not already parse-able.
However that does not mean that there is any agreement about the
merit of having such operators... but I can see from this email that
you are not trying to get into that right now. I'll just point out that
it will be time to talk about it before you find yourself doing a
significant amount of work related to it and if you are hoping/expecting
that work be merged.
Best,
-michael
_______________________________________________
Chapel-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-developers