Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Fun type specifications
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Francesco Mazzoli  
View profile  
 More options Sep 17 2012, 7:32 am
From: Francesco Mazzoli <f...@mazzo.li>
Date: Mon, 17 Sep 2012 12:33:20 +0100
Local: Mon, Sep 17 2012 7:33 am
Subject: Re: [erlang-questions] Fun type specifications
At Mon, 17 Sep 2012 13:20:12 +0200,

Loïc Hoguin wrote:
> -type my_fun_type() -> fun((Req) -> Req when Req::req()).

> This is a bit annoying as this makes the typing of the funs a little
> less precise than I hoped.

> Did I miss something and can you still do something like this? Or if
> not, can this be added eventually?

Well, can't you simply do

-type my_fun_type() -> fun((req()) -> req()) | other_type.

?

--
Francesco * Often in error, never in doubt
_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.