Re: the new raku.org is really beautiful (and tought about spurt)

[email protected] (Marc Chantreux) Mon, 8 Sep 2025 11:59:56 +0200
Newsgroups perl.perl6.users
Message-ID <aL6pHBj4mrtMm65r@prometheus>
On Mon, Sep 08, 2025 at 11:36:32AM +0200, Elizabeth Mattijsen wrote:
> The reason this doesn't work, is because  s:g/Hello/Hi/  requires a
> writeable $_, and the invocant of .&{  } is not writeable in this
> example.

AFAIR, there was also problems with the way I split the lines because
it changed priorities or was just not parsable.

> If you really like s/// syntax that much


not only I prefer the s!!! (with whatever separator syntax) but il like
the fact you can respect the left-to-right with .&{ } is super cool.

> why not use .subst(/Hello/, "Hi", :g)   instead?

my brain consider .subst(, "Hi", :g) as noise.  s/Hello/Hi/ is not
only faster to write/edit it's also less painful tu read but
I really need to refresh my skills so I can make better feedbacks.

-- 
Marc Chantreux
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQQrhynLytp14smlCwy+er2aYc+1WAUCaL6pEwAKCRC+er2aYc+1
WPPpAQCTlE7d1IF6QTT39aU9TevcfHYugTHvxYX/o85pjdcqugEAmVOKvl8iysge
UmCClhA5DQCw5JaTPYhOvU1T2GT3JQo=
=CIOw
-----END PGP SIGNATURE-----