<div dir="ltr">Perhaps someone could test it out by implementing it as part of <a href="https://github.com/gibiansky/ghc-reskin">ghc-reskin</a>?<div><br></div><div>Personally, I do feel like we need a better way to evolve the <i>syntax</i> of the language. The syntax is a minor concern, so almost all syntactic proposals get voted strongly down for all the reasons brought up above. However, syntax when taken all together is certainly not minor.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 4, 2015 at 4:19 PM, Greg Weber <span dir="ltr"><<a href="mailto:greg@gregweber.info" target="_blank">greg@gregweber.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">+1 for an opt-in extension. I am not sure if any approval is needed from the libraries committee for an optional extension like this if you are willing to do the work to bring it to fruition yourself.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 4, 2015 at 2:44 AM, Jeremy <span dir="ltr"><<a href="mailto:voldermort@hotmail.com" target="_blank">voldermort@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dot as Postfix Function Apply<br>
(<a href="https://ghc.haskell.org/trac/ghc/wiki/Records/DeclaredOverloadedRecordFields/DotPostfix" rel="noreferrer" target="_blank">https://ghc.haskell.org/trac/ghc/wiki/Records/DeclaredOverloadedRecordFields/DotPostfix</a>)<br>
was originally part of ORF, but dropped to keep the scope/discussion more<br>
manageable. Now that ORF is in for GHC 8.0, I would like to re-propose dot<br>
postfix syntax.<br>
<br>
The idea is that instead of<br>
<br>
(title person) ++ " " ++ (firstName person) ++ " " ++ (lastName person)<br>
<br>
we could have<br>
<br>
person.title ++ " " ++ person.firstName ++ " " ++ person.lastName<br>
<br>
This is a simple source-to-source translation with no changes to the type<br>
system (TDNR is an orthogonal proposal). The advantages are:<br>
<br>
1. Code that's easier to read/write.<br>
2. Familiar to users of almost every other programming language.<br>
3. IDE auto-complete - an IDE can suggest functions applicable to the<br>
variable after typing .<br>
<br>
This would be an opt-in extension.<br>
<br>
I'm posting this to the libraries list because that's where proposals<br>
generally go, although this isn't strictly a library issue. If it should be<br>
on a different list I'll move it.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://haskell.1045720.n5.nabble.com/Proposal-Dot-as-Postfix-Function-Apply-tp5821620.html" rel="noreferrer" target="_blank">http://haskell.1045720.n5.nabble.com/Proposal-Dot-as-Postfix-Function-Apply-tp5821620.html</a><br>
Sent from the Haskell - Libraries mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
<br></blockquote></div><br></div>