Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] From an enthusiast TLUG follower
- Date: Sun, 30 Aug 2020 01:10:17 +0900
- From: Benjamin Kowarsch <trijezdci@example.com>
- Subject: Re: [tlug] From an enthusiast TLUG follower
- References: <CAPkQBpQ-JL=AszYkb=gKH1BpFArRzN_-mKP+6+C+zWV9wuuzww@mail.gmail.com> <1cd99b22-5375-2d83-5ca4-a2beffd9df65@gmail.com> <20200828052855.7g2a3dliogl2szjy@logarithmic.cjs.cynic.net> <CAFv52OCG3kC02XhfXp8-XfmY2oVvX9cBMemoG9RqYpKH3xvKMQ@mail.gmail.com> <20200829145222.ei4iehmxchdzw6ue@iambic.cynic.net>
On Sat, 29 Aug 2020 at 23:53, Curt J. Sampson <cjs@example.com> wrote:
Where Go really fails is in being a language with compile-time type
checking, yet being unable to check things at compile time. For example,
say one of the parameters to a function is a compression level, which is in
the set { 0, 1, …, 9 }. You'd think it would be pretty simple to tell the
compiler, "if anybody tries to pass a value outside this set, generate an
error," right? Well, not in Go. I had to change the API of a library to
throw runtime exceptions because of this.Subrange types were a Pascalian innovation. I don't know of any curlybraces language that adopted them. Do you know of any?And type safety has never been a concern of C languages and theirdescendants either. Why would Go be any different, considering thatit came from the same folks that gave us C.Once upon a time there were Dykstra, Hoare and Wirth preachingtype safety and their teachings had weight. And then came peoplelike Linus Thorvalds who thinks he is smarter than all of them puttogether and he rants to his cult followers against all that whichDykstra, Hoare and Wirth stood for, even calling them idiots.Dykstra is dead and forgotten now, Hoare hasn't stuck his head outin decades and Wirth abandoned subrange types and enumerationtypes in his Oberon language, even adopted C's type promotionat one point although he's made a u-turn on that in the latestincarnation, calling it a bad idea.They also failed to produce a new generation of people to continuetheir cause. The notable exception from that tradition is Ada but thathas other issues that are at odds with their cause.The industry is now ridden with people who think type systemsand strong typing are something that belongs into a museum.Go reflects that long lasting trend. Sadly.
- Follow-Ups:
- Re: [tlug] From an enthusiast TLUG follower
- From: Stephen J. Turnbull
- [tlug] "Go Considered Harmful"
- From: Curt J. Sampson
- References:
- Re: [tlug] From an enthusiast TLUG follower
- From: Matteo G
- Re: [tlug] From an enthusiast TLUG follower
- From: Raymond Wan
- Re: [tlug] From an enthusiast TLUG follower
- From: Curt J. Sampson
- Re: [tlug] From an enthusiast TLUG follower
- From: Josh Glover
- Re: [tlug] From an enthusiast TLUG follower
- From: Curt J. Sampson
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] From an enthusiast TLUG follower
- Next by Date: Re: [tlug] From an enthusiast TLUG follower
- Previous by thread: Re: [tlug] From an enthusiast TLUG follower
- Next by thread: Re: [tlug] From an enthusiast TLUG follower
- Index(es):