in reply to Re^3: why not listed foreach and if?
in thread why not listed foreach and if?

"perl feed subs from right to left" refers code like
print join ':', sort qw( b g a)
as haskell '$' do; I do not like 'do {...}' at all, I wish perl accept more structures when if tailed.

Replies are listed 'Best First'.
Re^5: why not listed foreach and if?
by choroba (Cardinal) on Jun 19, 2024 at 08:35 UTC
    In open source, if you want something, the best way to get it is to write it yourself, especially if the idea doesn't seem to get much interest in others.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

      Writing a patch might not help since the syntax the OP wants to introduce was explicitly rejected. I suppose it could be a first step in convincing others to change their minds?

      I'm sure it's a good propose, only change perl's core parsing rule can realize it or raise solid reasons against it, not by 'code style' nonsense, I can decide what I want to write.
Re^5: why not listed foreach and if?
by ikegami (Patriarch) on Jun 19, 2024 at 15:40 UTC

    "perl feed subs from right to left" refers code like

    The action is on the left. The information needed for it follows. This is the opposite of what you say. This is an example of what we were calling left-to-right. It's the same order as for ( LIST ) BLOCK and the opposite order of EXPR for LIST.