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

Re: Checking for nil return

Thread Previous | Thread Next
Darren Duncan
January 1, 2021 01:51
Re: Checking for nil return
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About