But seriously, I don't mind . in other languages, but in perl? It makes me queasy
OTOH, what would be safe dereference?
| -. | $rock-.()-.the-.kasbah(); | $rock-. ()-. the-. kasbah(); |
| ~. | $rock~.()~.the~.kasbah(); | $rock~. ()~. the~. kasbah(); |
| &. | $rock&.()&.the&.kasbah(); | $rock&. ()&. the&. kasbah(); |
| ?. | $rock?.()?.the?.kasbah(); | $rock?. ()?. the?. kasbah(); |
| +. | $rock+.()+.the+.kasbah(); | $rock+. ()+. the+. kasbah(); |
| !. | $rock!.()!.the!.kasbah(); | $rock!. ()!. the!. kasbah(); |
| -.. | $rock-..()-..the-..kasbah(); | $rock-.. ()-.. the-.. kasbah(); |
| -.-. | $rock-.-.()-.-.the-.-.kasbah(); | $rock-.-.()-.-.the-.-. kasbah(); |
| ==. | $rock==.()==.the==.kasbah(); | $rock==. ()==. the==. kasbah(); |
| ?-. | $rock?-.()?-.the?-.kasbah(); | $rock?-. ()?-. the?-. kasbah(); |
| -.? | $rock-.?()-.?the-.?kasbah(); | $rock-.? ()-.? the-.? kasbah(); |
| &-. | $rock&-.()&-.the&-.kasbah(); | $rock&-. ()&-. the&-. kasbah(); |
| &&-. | $rock&&-.()&&-.the&&-.kasbah(); | $rock&&-.()&&-.the&&-. kasbah(); |
| -&. | $rock-&.()-&.the-&.kasbah(); | $rock-&. ()-&. the-&. kasbah(); |
| -&&. | $rock-&&.()-&&.the-&&.kasbah(); | $rock-&&.()-&&.the-&&. kasbah(); |
| -.& | $rock-.&()-.&the-.&kasbah(); | $rock-.& ()-.& the-.& kasbah(); |
| -.&& | $rock-.&&()-.&&the-.&&kasbah(); | $rock-.&&()-.&&the-.&& kasbah(); |
| -=. | $rock-=.()-=.the-=.kasbah(); | $rock-=. ()-=. the-=. kasbah(); |
| =-. | $rock=-.()=-.the=-.kasbah(); | $rock=-. ()=-. the=-. kasbah(); |
| ?. | $rock?.()?.the?.kasbah(); | $rock?. ()?. the?. kasbah(); |
| ?-. | $rock?-.()?-.the?-.kasbah(); | $rock?-. ()?-. the?-. kasbah(); |
| ?-.: | $rock?-.:()?-.:the?-.:kasbah(); | $rock?-.:()?-.:the?-.: kasbah(); |
| ~.: | $rock~.:()~.:the~.:kasbah(); | $rock~.: ()~.: the~.: kasbah(); |
$f.{a}.{b}.{c} $f->{a}->{b}->{c} $f->{a}{b}{c} $$f->{a}{b}{c} $f.{a}{b}{c}
I hope I muddied the waters some :)
In reply to Re: Thoughts on replacing -> with . (safe dereference)
by Anonymous Monk
in thread Thoughts on replacing -> with .
by Aaronrp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |