Proposal: Dot as Postfix Function Apply

Alexander Berntsen alexander at plaimi.net
Wed Nov 4 10:53:21 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

I see this come up every now and again, and now, like always, I'm at a
strong -1.

First of all, I don't like magic built-in stuff. And this certainly is
just that. It requires a higher precedence than you can possibly give
in regular code, and it is an exception to how all other operators
work with regards to requiring no spaces (note that this is different
to "not requiring spaces") -- this is reserved for module namespaces
per now.

Furthermore, it's confusingly similar to regular functional
composition. Second of all, we already have `x & f = f x`. Lastly,
(and I don't want to argue this one too strongly) it is another thing
like `return`, that makes imperative/OOP programmers confused.




Semi-related, I'd be interested in proposing the inclusion of a new
fixity level, 10, that was never used by base. *I* would certainly
find it useful every now and again.
- -- 
Alexander
alexander at plaimi.net
https://secure.plaimi.net/~alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCgAGBQJWOeOgAAoJENQqWdRUGk8B8PMQANQgXECx+FiFu5hpFGu1VAQ/
AUeLaDL9ZTdksRp17qxt59FQuieJ2Lx0fSCBjMYT1ZWvqivU9CRzlaJuHMcSpDen
a3Te7aYBqpaUCRAfKrIjkx7HRneW/0ckkeyP9r3rxIOeTPdXMtqVoqmVzkuHUgKk
0N9+H2li6BirLj/w77y/x3+y2yK+rXuiCMFhZOp/frqhBo5uWQhM4fY5LAi5dcln
lT8pjAWjjnBtyYIsZTFrKSF1GhEE/oAYr4C9EvL56yKNkuXBcbaaUNpwqnDEXVAW
kcsAagiCCnfIC2ex/U7uyMixRGdV4ph853BP/8Rk6MG4WufJHNkV8glmDNjvI+5E
H93PydpNtZwldCTawvidYPFQC1MO03HqThaND3wE5/zwjoiu4pdmx8oX5ZdYlmlx
e7hUmr+trbVLi9cv/cBF6ewvtLQX0rLPljx0GuDawhTc17f+KK6WpmiOeCZcN9EF
S4QA+9cB0Zxu2lwqu6s1wT9ss2Zt7DXlO/DDwV218+oCI+lKs1LdUEVDJptH8pbF
XYr5K54jwfe5PxVHuZz6OwRbg/DtxEvynBljMuiFK2Fddf1W4TjZGFl3iT4x8LYk
twD0hXwXpftH9Ew4JSli1XS//oqJ8auegP9mm6BhwscXbG/QuYpz1mqIrleY3+p0
2w8+2gu1JfQWUuQEXc2H
=T3c6
-----END PGP SIGNATURE-----


More information about the Libraries mailing list