develooper Front page | perl.perl6.language | Postings from January 2021

Re: Checking for nil return

Thread Previous | Thread Next
From:
Darren Duncan
Date:
January 1, 2021 01:51
Subject:
Re: Checking for nil return
Message ID:
b42eb5fa-b9db-92ff-4b30-c9c8f3d4826b@darrenduncan.net
On 2020-12-29 6:26 a.m., Ruud H.G. van Tol wrote:
> Basically, never mix error-state and return-value.
> Rather use a different channel/dimension for each.

Such a separation can't be absolute though.  One needs to be able to user-define 
routines that implement additional generic Failure related features, and in that 
case they WOULD be normal arguments or return values.  And so the regular type 
system still needs to support having anything at all as an argument or return 
value. -- Darren Duncan

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About