A few notes on choosing between Go and D for a quick project
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Sat Mar 14 09:56:01 PDT 2015
On 3/14/15 1:40 AM, Russel Winder via Digitalmars-d wrote:
> On Fri, 2015-03-13 at 16:13 -0700, Andrei Alexandrescu via Digitalmars-d
>> On 3/13/15 2:22 PM, Russel Winder via Digitalmars-d wrote:
>>> On Fri, 2015-03-13 at 10:31 -0700, Andrei Alexandrescu via Digitalmars-d
>> How do you mean "conversely"? Maybe you meant "incidentally"? -- Andrei
> In functional languages, each stage in the pipeline returns Option to
> avoid error handling. Go does not give you this facility as it refuses
> to allow activity without proper error checking.
Go does not give you this facility for a multitude of reasons, starting
with its lack of generic programming.
> So if byChunk returns a failed read, functional language just carry on,
> Go would force the error check, D does…
D throws an exception. Is that good or bad?
More information about the Digitalmars-d