Article View: comp.os.vms
Article #172Re: PHP "Features"
From: Lawrence D’Oliveiro
Date: Sat, 14 Nov 2026 22:28
Date: Sat, 14 Nov 2026 22:28
26 lines
2143 bytes
2143 bytes
On Sat, 14 Nov 2026 13:23:35 -0500, Arne Vajhøj wrote:
> * Python without type hint, Python with type hint, PHP and Groovy
> without type
> happily allows variables changing type with assignment [BAD]
Do you know why they’re called “hints”?
> Let us look at function overload.
>
> $ type fol.py
> def f(v: int):
> print(f"int : {v}")
>
> def f(v: str):
> print(f"str : {v}")
That’s not how to do it
<https://docs.python.org/3/library/functools.html#functools.singledispatch>.
Remember, “def” and “class” statements are not declarations, they are
best considered as a special form of assignment statement.
> And I know you can code in Groovy. :-)
Groovy does also have more flexible syntax (DSLs) ...
Technical Details
Message-ID:
<11dan9s$29p99$10@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11bcbi1$k068$1@dont-email.me> <nk2bhaF5j2sU1@mid.individual.net> <11bh3ei$19g$1@reader2.panix.com> <11bi7bg$2mdi4$1@dont-email.me> <11bipfv$190$1@reader2.panix.com> <11bquar$1pp8h$3@dont-email.me> <11brcg1$1vuaq$1@dont-email.me> <11da8tp$25hpa$7@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Lawrence D’Oliveiro <ldo@nz.invalid> Newsgroups: comp.os.vms Subject: Re: PHP "Features" Date: Sat, 14 Nov 2026 22:28:13 -0000 (UTC) Organization: A noiseless patient Spider Lines: 26 Message-ID: <11dan9s$29p99$10@dont-email.me> References: <11bcbi1$k068$1@dont-email.me> <nk2bhaF5j2sU1@mid.individual.net> <11bh3ei$19g$1@reader2.panix.com> <11bi7bg$2mdi4$1@dont-email.me> <11bipfv$190$1@reader2.panix.com> <11bquar$1pp8h$3@dont-email.me> <11brcg1$1vuaq$1@dont-email.me> <11da8tp$25hpa$7@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 14 Nov 2026 22:28:13 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2417961"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+I3Dpo6gSNfFy2NwgS1Q5R"; posting-host="adeee4c87be070b62ceb4e7623172bf4" User-Agent: Pan/0.165 (Kostiantynivka) Cancel-Lock: sha1:O1G81AFVzlYs5DmzjfewofU4iEg= sha256:v5kkSeBRdXxcial/L6xUWleejToiJRe6MGr3Tp2dxJw= sha1:NhBD3PytAWpRvy9Quee2oV6UvmM= sha256:2tkrgY2sjbZ9Bu/P5MSPD14GfAHhxYlEPEZl8vSs7yM=