<p dir="ltr">I think such proposals are special cases of a general theme: a compiler pragma, similar to "from __future__", to make Python support domain-specific syntax in the current file. Whether it's decimal literals or matrix/vector literals etc. </p>
<p dir="ltr">I think it will be nice to make some tool, external to Python, that will allow defining such "sibling languages" (transpiled into Python) easily and uniformly.</p>
<p dir="ltr">Elazar </p>
<br><div class="gmail_quote"><div dir="ltr">בתאריך יום ה׳, 12 בינו' 2017, 13:21, מאת Paul Moore <<a href="mailto:p.f.moore@gmail.com">p.f.moore@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 12 January 2017 at 10:28, Victor Stinner <<a href="mailto:victor.stinner@gmail.com" class="gmail_msg" target="_blank">victor.stinner@gmail.com</a>> wrote:<br class="gmail_msg">
> George requested this feature on the bug tracker:<br class="gmail_msg">
> <a href="http://bugs.python.org/issue29223" rel="noreferrer" class="gmail_msg" target="_blank">http://bugs.python.org/issue29223</a><br class="gmail_msg">
><br class="gmail_msg">
> George was asked to start a discusson on this list. I posted the<br class="gmail_msg">
> following comment before closing the issue:<br class="gmail_msg">
><br class="gmail_msg">
> You are not the first one to propose the idea.<br class="gmail_msg">
<br class="gmail_msg">
OK, but without additional detail (for example, how would the proposed<br class="gmail_msg">
flag work, if the main module imports module A, then would float<br class="gmail_msg">
literals in A be decimal or binary? Both could be what the user wants)<br class="gmail_msg">
it's hard to comment. And as you say, most of this has been discussed<br class="gmail_msg">
before, so I'd like to see references back to the previous discussions<br class="gmail_msg">
in any proposal, with explanations of how the new proposal addresses<br class="gmail_msg">
the objections raised previously.<br class="gmail_msg">
<br class="gmail_msg">
Paul<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
Python-ideas mailing list<br class="gmail_msg">
<a href="mailto:Python-ideas@python.org" class="gmail_msg" target="_blank">Python-ideas@python.org</a><br class="gmail_msg">
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer" class="gmail_msg" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br class="gmail_msg">
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer" class="gmail_msg" target="_blank">http://python.org/psf/codeofconduct/</a><br class="gmail_msg">
</blockquote></div>