On 2023-04-13 08:25:51 -0700, Grant Edwards wrote: > On 2023-04-13, Cameron Simpson <c...@cskk.id.au> wrote: > > On 12Apr2023 22:12, avi.e.gr...@gmail.com <avi.e.gr...@gmail.com> wrote: > > > >>I suspect the OP is thinking of languages like PERL or JAVA which guess > >>for you and make such conversions when it seems to make sense. > > > > JavaScript guesses. What a nightmare. > > So does PHP.
Not in this case. Like Perl (Not PERL) it has different operators for concatenation and addition. So $a + $b is always addition, never concatenation. Well, at least numbers and strings. For arrays its a (somewhat bizarre) union. hp -- _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | h...@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!"
signature.asc
Description: PGP signature
-- https://mail.python.org/mailman/listinfo/python-list