Is there any use case for the bottom type as a function parameter type?What is the difference between the semantic and syntactic views of function types?Type systems understanding problemsWhy aren't we researching more towards compile time guarantees?Why do we have to forbid non-conforming lower and upper type bounds?Question about “Type checking a multithreaded functional language with session types” by Vasconcelos et alSafe way to explicitly define new types instead of using Algebraic data types for my functional languageType-classes for type inferenceHow could one write typing rules with variables defined at call-site?What is the use case for multi-type-parameter generics?What is the use case of multi-type-parameters generic interface?

How can I remove material from this wood beam?

Cathode rays and the cathode rays tube

Do empty drive bays need to be filled?

What should I discuss with my DM prior to my first game?

Flight compensation with agent

Do you really need a KDF when you have a PRF?

Does the new finding on "reversing a quantum jump mid-flight" rule out any interpretations of QM?

Should I put programming books I wrote a few years ago on my resume?

That's not my X, its Y is too Z

Why did the World Bank set the global poverty line at $1.90?

Is it safe to remove python 2.7.15rc1 from Ubuntu 18.04?

Analogy between an unknown in an argument, and a contradiction in the principle of explosion

As easy as Three, Two, One... How fast can you go from Five to Four?

What do Birth, Age, and Death mean in the first noble truth?

Housemarks (superimposed & combined letters, heraldry)

Why is long-term living in Almost-Earth causing severe health problems?

How to befriend someone who doesn't like to talk?

Can you make an identity from this product?

What differences exist between adamantine and adamantite in all editions of D&D?

How and why do references in academic papers work?

Make Gimbap cutter

The origin of the Russian proverb about two hares

What is the logic behind charging tax _in the form of money_ for owning property when the property does not produce money?

What would be the way to say "just saying" in German? (Not the literal translation)



Is there any use case for the bottom type as a function parameter type?


What is the difference between the semantic and syntactic views of function types?Type systems understanding problemsWhy aren't we researching more towards compile time guarantees?Why do we have to forbid non-conforming lower and upper type bounds?Question about “Type checking a multithreaded functional language with session types” by Vasconcelos et alSafe way to explicitly define new types instead of using Algebraic data types for my functional languageType-classes for type inferenceHow could one write typing rules with variables defined at call-site?What is the use case for multi-type-parameter generics?What is the use case of multi-type-parameters generic interface?













12












$begingroup$


If a function has return type of ⊥ (bottom type), that means it never returns. It can for example exit or throw, both fairly ordinary situations.



Presumably if a function had a parameter of type ⊥ it could never (safely) be called. Are there ever any reasons for defining such a function?










share|cite|improve this question









$endgroup$
















    12












    $begingroup$


    If a function has return type of ⊥ (bottom type), that means it never returns. It can for example exit or throw, both fairly ordinary situations.



    Presumably if a function had a parameter of type ⊥ it could never (safely) be called. Are there ever any reasons for defining such a function?










    share|cite|improve this question









    $endgroup$














      12












      12








      12


      4



      $begingroup$


      If a function has return type of ⊥ (bottom type), that means it never returns. It can for example exit or throw, both fairly ordinary situations.



      Presumably if a function had a parameter of type ⊥ it could never (safely) be called. Are there ever any reasons for defining such a function?










      share|cite|improve this question









      $endgroup$




      If a function has return type of ⊥ (bottom type), that means it never returns. It can for example exit or throw, both fairly ordinary situations.



      Presumably if a function had a parameter of type ⊥ it could never (safely) be called. Are there ever any reasons for defining such a function?







      type-theory type-checking






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked May 26 at 21:08









      bdslbdsl

      1614




      1614




















          5 Answers
          5






          active

          oldest

          votes


















          16












          $begingroup$

          One of the defining properties of the $bot$ or empty type is that there exists a function $bot to A$ for every type $A$. In fact, there exists a unique such function. It is therefore, fairly reasonable for this function to be provided as part of the standard library. Often it is called something like absurd. (In systems with subtyping, this might be handled simply by having $bot$ be a subtype of every type. Then the implicit conversion is absurd. Another related approach is to define $bot$ as $forall alpha.alpha$ which can simply be instantiated to any type.)



          You definitely want to have such a function or an equivalent because it is what allows you to make use of functions that produce $bot$. For example, let's say I'm given a sum type $E+A$. I do a case analysis on it and in the $E$ case I'm going to throw an exception using $mathttthrow:Etobot$. In the $A$ case, I'll use $f:Ato B$. Overall, I want a value of type $B$ so I need to do something to turn a $bot$ into a $B$. That's what absurd would let me do.



          That said, there's not a whole lot of reason to define your own functions of $botto A$. By definition, they would necessarily be instances of absurd. Still, you might do it if absurd isn't provided by the standard library, or you wanted a type specialized version to assist type checking/inference. You can, however, easily produce functions that will end up instantiated to a type like $botto A$.



          Even though there isn't much a reason to write such a function, it should generally still be allowed. One reason is that it simplifies code generation tools/macros.






          share|cite|improve this answer









          $endgroup$












          • $begingroup$
            So this means something like (x ? 3 : throw new Exception()) gets replaced for analysis purposes with something more like (x ? 3 : absurd(throw new Exception()))?
            $endgroup$
            – bdsl
            May 28 at 9:05











          • $begingroup$
            If you didn't have subtyping or hadn't defined $bot$ as $forall alpha.alpha$, then the former wouldn't type check and the latter would. With subtyping, yes, something like absurd would implicitly be being inserted. Of course, you could put the absurd inside the definition of throw which is effectively what defining $bot$ as $forallalpha.alpha$ would do.
            $endgroup$
            – Derek Elkins
            May 28 at 18:50


















          5












          $begingroup$

          To add to what has been said about the function absurd: ⊥ -> a I have a concrete example of where this function is actually useful.



          Consider the Haskell data-type Free f a which represents a general tree structure with f-shaped nodes and leaves containing as:



          data Free f a = Op (f (Free f a)) | Var a



          These trees can be folded with the following function:



          fold :: Functor f => (a -> b) -> (f b -> b) -> Free f a -> b
          fold gen alg (Var x) = gen x
          fold gen alg (Op x) = alg (fmap (fold gen alg) x)


          Briefly, this operation places alg at the nodes and gen at the leaves.



          Now to the point: all recursive datastructures can be represented using a Fixed-point datatype. In Haskell this is Fix f and it can defined as type Fix f = Free f ⊥ (i.e. Trees with f-shaped nodes and no leaves outside of the functor f). Traditionally this structure has a fold as well, called cata:



          cata :: Functor f => (f a -> a) -> Fix f -> a
          cata alg x = fold absurd alg x


          Which gives a quite neat use of absurd: since the tree cannot have any leaves (since ⊥ has no inhabitants other than undefined), it is never possible to use the gen for this fold and absurd illustrates that!






          share|cite|improve this answer









          $endgroup$




















            1












            $begingroup$

            The bottom type is a subtype of every other type, which can be extremely useful in practice. For example, the type of NULL in a theoretical type-safe version of C must be a subtype of every other pointer type, otherwise you couldn't e.g. return NULL where a char* was expected; similarly, the type of undefined in theoretical type-safe JavaScript must be a subtype of every other type in the language.



            As a function return type, it's also very useful to have certain functions that never return. In a strongly-typed language with exceptions, for instance, what type should exit() or throw() return? They never return control flow to their caller. And since the bottom type is a subtype of every other type, it's perfectly valid for a function returning Int to instead return $bot$—that is, a function returning Int can also choose not to return at all. (Maybe it calls exit(), or maybe it goes into an infinite loop.) This is good to have, because whether a function ever returns or not is famously undecidable.



            Finally, it's very useful for writing constraints. Suppose you want to constrain all parameters on "both sides", providing a type that must be a supertype of the parameter, and another type that must be a subtype. Since bottom is a subtype of every type, you can express "any subtype of S" as $bot prec T prec S$. Or, you can express "any type at all" as $bot prec T prec top$.






            share|cite|improve this answer











            $endgroup$








            • 3




              $begingroup$
              NULL is a unit type isn't it, distinct from ⊥ which is the empty type?
              $endgroup$
              – bdsl
              May 26 at 23:18










            • $begingroup$
              I'm not sure quite what ≺ means in type theory.
              $endgroup$
              – bdsl
              May 26 at 23:18






            • 1




              $begingroup$
              @bdsl The curved operator here is "is a subtype of"; I'm not sure if it's standard, it's just what my professor used.
              $endgroup$
              – Draconis
              May 26 at 23:40






            • 1




              $begingroup$
              @gnasher729 True, but C also isn't particularly type-safe. I'm saying if you couldn't just cast an integer to void*, you'd need a specific type for it that could be used for any pointer type.
              $endgroup$
              – Draconis
              May 26 at 23:42






            • 2




              $begingroup$
              Incidentally, the most common notation I've seen for the subtyping relation is <: e.g. System $F_mathtt<:$.
              $endgroup$
              – Derek Elkins
              May 27 at 1:50


















            1












            $begingroup$

            There is one use I can think of, and it's something that has been considered as an improvement to the Swift programming language.



            Swift has a maybe Monad, spelled Optional<T> or T?. There are many ways to interact with it.




            • You can use conditional unwrapping like



              if let nonOptional = someOptional 
              print(nonOptional)

              else
              print("someOptional was nil")



            • You can use map, flatMap to transform the values


            • The force unwrap operator (!, of type (T?) -> T) to forcefully unwrap the contents, otherwise triggering a crash


            • The nil-coalescing operator (??, of type (T?, T) -> T) to take its value or otherwise use a default value:



              let someI = Optional(100)
              print(someI ?? 123) => 100 // "left operand is non-nil, unwrap it.

              let noneI: Int? = nil
              print(noneI ?? 123) // => 123 // left operand is nil, take right operand, acts like a "default" value


            Unfortunately, there was no concise way of saying "unwrap or throw an error" or "unwrap or crash with a custom error message". Something like



            let someI: Int? = Optional(123)
            let nonOptionalI: Int = someI ?? fatalError("Expected a non-nil value")


            doesn't compile, because fatalError has type () -> Never (() is Void, Swift' unit type, Never is Swift's bottom type). Calling it produces Never, which isn't compatible with the T expected as a right operand of ??.



            In an attempt to remedy this, Swift Evolution propsoal SE-0217 - The “Unwrap or Die” operator was put forth. It was ultimately rejected, but it raised interest in making Never be a subtype of all types.



            If Never was made to be a subtype of all types, then the previous example will be compilable:



            let someI: Int? = Optional(123)
            let nonOptionalI: Int = someI ?? fatalError("Expected a non-nil value")


            because the call site of ?? has type (T?, Never) -> T, which would be compatible with the (T?, T) -> T signature of ??.






            share|cite|improve this answer









            $endgroup$




















              0












              $begingroup$

              Swift has a type "Never" which seems to be quite like the bottom type: A function declared to return Never can never return, a function with a parameter of type Never can never be called.



              This is useful in connection with protocols, where there may be a restriction due to the type system of the language that a class must have a certain function, but with no requirement that this function should ever be called, and no requirement what the argument types would be.



              For details you should have a look at the newer posts on the swift-evolution mailing list.






              share|cite|improve this answer









              $endgroup$








              • 7




                $begingroup$
                "Newer posts on the swift-evolution mailing list" is not a very clear or stable reference. Is there not a web archive of the mailing list?
                $endgroup$
                – Derek Elkins
                May 27 at 2:10











              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "419"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcs.stackexchange.com%2fquestions%2f109897%2fis-there-any-use-case-for-the-bottom-type-as-a-function-parameter-type%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              5 Answers
              5






              active

              oldest

              votes








              5 Answers
              5






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              16












              $begingroup$

              One of the defining properties of the $bot$ or empty type is that there exists a function $bot to A$ for every type $A$. In fact, there exists a unique such function. It is therefore, fairly reasonable for this function to be provided as part of the standard library. Often it is called something like absurd. (In systems with subtyping, this might be handled simply by having $bot$ be a subtype of every type. Then the implicit conversion is absurd. Another related approach is to define $bot$ as $forall alpha.alpha$ which can simply be instantiated to any type.)



              You definitely want to have such a function or an equivalent because it is what allows you to make use of functions that produce $bot$. For example, let's say I'm given a sum type $E+A$. I do a case analysis on it and in the $E$ case I'm going to throw an exception using $mathttthrow:Etobot$. In the $A$ case, I'll use $f:Ato B$. Overall, I want a value of type $B$ so I need to do something to turn a $bot$ into a $B$. That's what absurd would let me do.



              That said, there's not a whole lot of reason to define your own functions of $botto A$. By definition, they would necessarily be instances of absurd. Still, you might do it if absurd isn't provided by the standard library, or you wanted a type specialized version to assist type checking/inference. You can, however, easily produce functions that will end up instantiated to a type like $botto A$.



              Even though there isn't much a reason to write such a function, it should generally still be allowed. One reason is that it simplifies code generation tools/macros.






              share|cite|improve this answer









              $endgroup$












              • $begingroup$
                So this means something like (x ? 3 : throw new Exception()) gets replaced for analysis purposes with something more like (x ? 3 : absurd(throw new Exception()))?
                $endgroup$
                – bdsl
                May 28 at 9:05











              • $begingroup$
                If you didn't have subtyping or hadn't defined $bot$ as $forall alpha.alpha$, then the former wouldn't type check and the latter would. With subtyping, yes, something like absurd would implicitly be being inserted. Of course, you could put the absurd inside the definition of throw which is effectively what defining $bot$ as $forallalpha.alpha$ would do.
                $endgroup$
                – Derek Elkins
                May 28 at 18:50















              16












              $begingroup$

              One of the defining properties of the $bot$ or empty type is that there exists a function $bot to A$ for every type $A$. In fact, there exists a unique such function. It is therefore, fairly reasonable for this function to be provided as part of the standard library. Often it is called something like absurd. (In systems with subtyping, this might be handled simply by having $bot$ be a subtype of every type. Then the implicit conversion is absurd. Another related approach is to define $bot$ as $forall alpha.alpha$ which can simply be instantiated to any type.)



              You definitely want to have such a function or an equivalent because it is what allows you to make use of functions that produce $bot$. For example, let's say I'm given a sum type $E+A$. I do a case analysis on it and in the $E$ case I'm going to throw an exception using $mathttthrow:Etobot$. In the $A$ case, I'll use $f:Ato B$. Overall, I want a value of type $B$ so I need to do something to turn a $bot$ into a $B$. That's what absurd would let me do.



              That said, there's not a whole lot of reason to define your own functions of $botto A$. By definition, they would necessarily be instances of absurd. Still, you might do it if absurd isn't provided by the standard library, or you wanted a type specialized version to assist type checking/inference. You can, however, easily produce functions that will end up instantiated to a type like $botto A$.



              Even though there isn't much a reason to write such a function, it should generally still be allowed. One reason is that it simplifies code generation tools/macros.






              share|cite|improve this answer









              $endgroup$












              • $begingroup$
                So this means something like (x ? 3 : throw new Exception()) gets replaced for analysis purposes with something more like (x ? 3 : absurd(throw new Exception()))?
                $endgroup$
                – bdsl
                May 28 at 9:05











              • $begingroup$
                If you didn't have subtyping or hadn't defined $bot$ as $forall alpha.alpha$, then the former wouldn't type check and the latter would. With subtyping, yes, something like absurd would implicitly be being inserted. Of course, you could put the absurd inside the definition of throw which is effectively what defining $bot$ as $forallalpha.alpha$ would do.
                $endgroup$
                – Derek Elkins
                May 28 at 18:50













              16












              16








              16





              $begingroup$

              One of the defining properties of the $bot$ or empty type is that there exists a function $bot to A$ for every type $A$. In fact, there exists a unique such function. It is therefore, fairly reasonable for this function to be provided as part of the standard library. Often it is called something like absurd. (In systems with subtyping, this might be handled simply by having $bot$ be a subtype of every type. Then the implicit conversion is absurd. Another related approach is to define $bot$ as $forall alpha.alpha$ which can simply be instantiated to any type.)



              You definitely want to have such a function or an equivalent because it is what allows you to make use of functions that produce $bot$. For example, let's say I'm given a sum type $E+A$. I do a case analysis on it and in the $E$ case I'm going to throw an exception using $mathttthrow:Etobot$. In the $A$ case, I'll use $f:Ato B$. Overall, I want a value of type $B$ so I need to do something to turn a $bot$ into a $B$. That's what absurd would let me do.



              That said, there's not a whole lot of reason to define your own functions of $botto A$. By definition, they would necessarily be instances of absurd. Still, you might do it if absurd isn't provided by the standard library, or you wanted a type specialized version to assist type checking/inference. You can, however, easily produce functions that will end up instantiated to a type like $botto A$.



              Even though there isn't much a reason to write such a function, it should generally still be allowed. One reason is that it simplifies code generation tools/macros.






              share|cite|improve this answer









              $endgroup$



              One of the defining properties of the $bot$ or empty type is that there exists a function $bot to A$ for every type $A$. In fact, there exists a unique such function. It is therefore, fairly reasonable for this function to be provided as part of the standard library. Often it is called something like absurd. (In systems with subtyping, this might be handled simply by having $bot$ be a subtype of every type. Then the implicit conversion is absurd. Another related approach is to define $bot$ as $forall alpha.alpha$ which can simply be instantiated to any type.)



              You definitely want to have such a function or an equivalent because it is what allows you to make use of functions that produce $bot$. For example, let's say I'm given a sum type $E+A$. I do a case analysis on it and in the $E$ case I'm going to throw an exception using $mathttthrow:Etobot$. In the $A$ case, I'll use $f:Ato B$. Overall, I want a value of type $B$ so I need to do something to turn a $bot$ into a $B$. That's what absurd would let me do.



              That said, there's not a whole lot of reason to define your own functions of $botto A$. By definition, they would necessarily be instances of absurd. Still, you might do it if absurd isn't provided by the standard library, or you wanted a type specialized version to assist type checking/inference. You can, however, easily produce functions that will end up instantiated to a type like $botto A$.



              Even though there isn't much a reason to write such a function, it should generally still be allowed. One reason is that it simplifies code generation tools/macros.







              share|cite|improve this answer












              share|cite|improve this answer



              share|cite|improve this answer










              answered May 27 at 2:10









              Derek ElkinsDerek Elkins

              10.4k12435




              10.4k12435











              • $begingroup$
                So this means something like (x ? 3 : throw new Exception()) gets replaced for analysis purposes with something more like (x ? 3 : absurd(throw new Exception()))?
                $endgroup$
                – bdsl
                May 28 at 9:05











              • $begingroup$
                If you didn't have subtyping or hadn't defined $bot$ as $forall alpha.alpha$, then the former wouldn't type check and the latter would. With subtyping, yes, something like absurd would implicitly be being inserted. Of course, you could put the absurd inside the definition of throw which is effectively what defining $bot$ as $forallalpha.alpha$ would do.
                $endgroup$
                – Derek Elkins
                May 28 at 18:50
















              • $begingroup$
                So this means something like (x ? 3 : throw new Exception()) gets replaced for analysis purposes with something more like (x ? 3 : absurd(throw new Exception()))?
                $endgroup$
                – bdsl
                May 28 at 9:05











              • $begingroup$
                If you didn't have subtyping or hadn't defined $bot$ as $forall alpha.alpha$, then the former wouldn't type check and the latter would. With subtyping, yes, something like absurd would implicitly be being inserted. Of course, you could put the absurd inside the definition of throw which is effectively what defining $bot$ as $forallalpha.alpha$ would do.
                $endgroup$
                – Derek Elkins
                May 28 at 18:50















              $begingroup$
              So this means something like (x ? 3 : throw new Exception()) gets replaced for analysis purposes with something more like (x ? 3 : absurd(throw new Exception()))?
              $endgroup$
              – bdsl
              May 28 at 9:05





              $begingroup$
              So this means something like (x ? 3 : throw new Exception()) gets replaced for analysis purposes with something more like (x ? 3 : absurd(throw new Exception()))?
              $endgroup$
              – bdsl
              May 28 at 9:05













              $begingroup$
              If you didn't have subtyping or hadn't defined $bot$ as $forall alpha.alpha$, then the former wouldn't type check and the latter would. With subtyping, yes, something like absurd would implicitly be being inserted. Of course, you could put the absurd inside the definition of throw which is effectively what defining $bot$ as $forallalpha.alpha$ would do.
              $endgroup$
              – Derek Elkins
              May 28 at 18:50




              $begingroup$
              If you didn't have subtyping or hadn't defined $bot$ as $forall alpha.alpha$, then the former wouldn't type check and the latter would. With subtyping, yes, something like absurd would implicitly be being inserted. Of course, you could put the absurd inside the definition of throw which is effectively what defining $bot$ as $forallalpha.alpha$ would do.
              $endgroup$
              – Derek Elkins
              May 28 at 18:50











              5












              $begingroup$

              To add to what has been said about the function absurd: ⊥ -> a I have a concrete example of where this function is actually useful.



              Consider the Haskell data-type Free f a which represents a general tree structure with f-shaped nodes and leaves containing as:



              data Free f a = Op (f (Free f a)) | Var a



              These trees can be folded with the following function:



              fold :: Functor f => (a -> b) -> (f b -> b) -> Free f a -> b
              fold gen alg (Var x) = gen x
              fold gen alg (Op x) = alg (fmap (fold gen alg) x)


              Briefly, this operation places alg at the nodes and gen at the leaves.



              Now to the point: all recursive datastructures can be represented using a Fixed-point datatype. In Haskell this is Fix f and it can defined as type Fix f = Free f ⊥ (i.e. Trees with f-shaped nodes and no leaves outside of the functor f). Traditionally this structure has a fold as well, called cata:



              cata :: Functor f => (f a -> a) -> Fix f -> a
              cata alg x = fold absurd alg x


              Which gives a quite neat use of absurd: since the tree cannot have any leaves (since ⊥ has no inhabitants other than undefined), it is never possible to use the gen for this fold and absurd illustrates that!






              share|cite|improve this answer









              $endgroup$

















                5












                $begingroup$

                To add to what has been said about the function absurd: ⊥ -> a I have a concrete example of where this function is actually useful.



                Consider the Haskell data-type Free f a which represents a general tree structure with f-shaped nodes and leaves containing as:



                data Free f a = Op (f (Free f a)) | Var a



                These trees can be folded with the following function:



                fold :: Functor f => (a -> b) -> (f b -> b) -> Free f a -> b
                fold gen alg (Var x) = gen x
                fold gen alg (Op x) = alg (fmap (fold gen alg) x)


                Briefly, this operation places alg at the nodes and gen at the leaves.



                Now to the point: all recursive datastructures can be represented using a Fixed-point datatype. In Haskell this is Fix f and it can defined as type Fix f = Free f ⊥ (i.e. Trees with f-shaped nodes and no leaves outside of the functor f). Traditionally this structure has a fold as well, called cata:



                cata :: Functor f => (f a -> a) -> Fix f -> a
                cata alg x = fold absurd alg x


                Which gives a quite neat use of absurd: since the tree cannot have any leaves (since ⊥ has no inhabitants other than undefined), it is never possible to use the gen for this fold and absurd illustrates that!






                share|cite|improve this answer









                $endgroup$















                  5












                  5








                  5





                  $begingroup$

                  To add to what has been said about the function absurd: ⊥ -> a I have a concrete example of where this function is actually useful.



                  Consider the Haskell data-type Free f a which represents a general tree structure with f-shaped nodes and leaves containing as:



                  data Free f a = Op (f (Free f a)) | Var a



                  These trees can be folded with the following function:



                  fold :: Functor f => (a -> b) -> (f b -> b) -> Free f a -> b
                  fold gen alg (Var x) = gen x
                  fold gen alg (Op x) = alg (fmap (fold gen alg) x)


                  Briefly, this operation places alg at the nodes and gen at the leaves.



                  Now to the point: all recursive datastructures can be represented using a Fixed-point datatype. In Haskell this is Fix f and it can defined as type Fix f = Free f ⊥ (i.e. Trees with f-shaped nodes and no leaves outside of the functor f). Traditionally this structure has a fold as well, called cata:



                  cata :: Functor f => (f a -> a) -> Fix f -> a
                  cata alg x = fold absurd alg x


                  Which gives a quite neat use of absurd: since the tree cannot have any leaves (since ⊥ has no inhabitants other than undefined), it is never possible to use the gen for this fold and absurd illustrates that!






                  share|cite|improve this answer









                  $endgroup$



                  To add to what has been said about the function absurd: ⊥ -> a I have a concrete example of where this function is actually useful.



                  Consider the Haskell data-type Free f a which represents a general tree structure with f-shaped nodes and leaves containing as:



                  data Free f a = Op (f (Free f a)) | Var a



                  These trees can be folded with the following function:



                  fold :: Functor f => (a -> b) -> (f b -> b) -> Free f a -> b
                  fold gen alg (Var x) = gen x
                  fold gen alg (Op x) = alg (fmap (fold gen alg) x)


                  Briefly, this operation places alg at the nodes and gen at the leaves.



                  Now to the point: all recursive datastructures can be represented using a Fixed-point datatype. In Haskell this is Fix f and it can defined as type Fix f = Free f ⊥ (i.e. Trees with f-shaped nodes and no leaves outside of the functor f). Traditionally this structure has a fold as well, called cata:



                  cata :: Functor f => (f a -> a) -> Fix f -> a
                  cata alg x = fold absurd alg x


                  Which gives a quite neat use of absurd: since the tree cannot have any leaves (since ⊥ has no inhabitants other than undefined), it is never possible to use the gen for this fold and absurd illustrates that!







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered May 27 at 16:28









                  J_mie6J_mie6

                  21017




                  21017





















                      1












                      $begingroup$

                      The bottom type is a subtype of every other type, which can be extremely useful in practice. For example, the type of NULL in a theoretical type-safe version of C must be a subtype of every other pointer type, otherwise you couldn't e.g. return NULL where a char* was expected; similarly, the type of undefined in theoretical type-safe JavaScript must be a subtype of every other type in the language.



                      As a function return type, it's also very useful to have certain functions that never return. In a strongly-typed language with exceptions, for instance, what type should exit() or throw() return? They never return control flow to their caller. And since the bottom type is a subtype of every other type, it's perfectly valid for a function returning Int to instead return $bot$—that is, a function returning Int can also choose not to return at all. (Maybe it calls exit(), or maybe it goes into an infinite loop.) This is good to have, because whether a function ever returns or not is famously undecidable.



                      Finally, it's very useful for writing constraints. Suppose you want to constrain all parameters on "both sides", providing a type that must be a supertype of the parameter, and another type that must be a subtype. Since bottom is a subtype of every type, you can express "any subtype of S" as $bot prec T prec S$. Or, you can express "any type at all" as $bot prec T prec top$.






                      share|cite|improve this answer











                      $endgroup$








                      • 3




                        $begingroup$
                        NULL is a unit type isn't it, distinct from ⊥ which is the empty type?
                        $endgroup$
                        – bdsl
                        May 26 at 23:18










                      • $begingroup$
                        I'm not sure quite what ≺ means in type theory.
                        $endgroup$
                        – bdsl
                        May 26 at 23:18






                      • 1




                        $begingroup$
                        @bdsl The curved operator here is "is a subtype of"; I'm not sure if it's standard, it's just what my professor used.
                        $endgroup$
                        – Draconis
                        May 26 at 23:40






                      • 1




                        $begingroup$
                        @gnasher729 True, but C also isn't particularly type-safe. I'm saying if you couldn't just cast an integer to void*, you'd need a specific type for it that could be used for any pointer type.
                        $endgroup$
                        – Draconis
                        May 26 at 23:42






                      • 2




                        $begingroup$
                        Incidentally, the most common notation I've seen for the subtyping relation is <: e.g. System $F_mathtt<:$.
                        $endgroup$
                        – Derek Elkins
                        May 27 at 1:50















                      1












                      $begingroup$

                      The bottom type is a subtype of every other type, which can be extremely useful in practice. For example, the type of NULL in a theoretical type-safe version of C must be a subtype of every other pointer type, otherwise you couldn't e.g. return NULL where a char* was expected; similarly, the type of undefined in theoretical type-safe JavaScript must be a subtype of every other type in the language.



                      As a function return type, it's also very useful to have certain functions that never return. In a strongly-typed language with exceptions, for instance, what type should exit() or throw() return? They never return control flow to their caller. And since the bottom type is a subtype of every other type, it's perfectly valid for a function returning Int to instead return $bot$—that is, a function returning Int can also choose not to return at all. (Maybe it calls exit(), or maybe it goes into an infinite loop.) This is good to have, because whether a function ever returns or not is famously undecidable.



                      Finally, it's very useful for writing constraints. Suppose you want to constrain all parameters on "both sides", providing a type that must be a supertype of the parameter, and another type that must be a subtype. Since bottom is a subtype of every type, you can express "any subtype of S" as $bot prec T prec S$. Or, you can express "any type at all" as $bot prec T prec top$.






                      share|cite|improve this answer











                      $endgroup$








                      • 3




                        $begingroup$
                        NULL is a unit type isn't it, distinct from ⊥ which is the empty type?
                        $endgroup$
                        – bdsl
                        May 26 at 23:18










                      • $begingroup$
                        I'm not sure quite what ≺ means in type theory.
                        $endgroup$
                        – bdsl
                        May 26 at 23:18






                      • 1




                        $begingroup$
                        @bdsl The curved operator here is "is a subtype of"; I'm not sure if it's standard, it's just what my professor used.
                        $endgroup$
                        – Draconis
                        May 26 at 23:40






                      • 1




                        $begingroup$
                        @gnasher729 True, but C also isn't particularly type-safe. I'm saying if you couldn't just cast an integer to void*, you'd need a specific type for it that could be used for any pointer type.
                        $endgroup$
                        – Draconis
                        May 26 at 23:42






                      • 2




                        $begingroup$
                        Incidentally, the most common notation I've seen for the subtyping relation is <: e.g. System $F_mathtt<:$.
                        $endgroup$
                        – Derek Elkins
                        May 27 at 1:50













                      1












                      1








                      1





                      $begingroup$

                      The bottom type is a subtype of every other type, which can be extremely useful in practice. For example, the type of NULL in a theoretical type-safe version of C must be a subtype of every other pointer type, otherwise you couldn't e.g. return NULL where a char* was expected; similarly, the type of undefined in theoretical type-safe JavaScript must be a subtype of every other type in the language.



                      As a function return type, it's also very useful to have certain functions that never return. In a strongly-typed language with exceptions, for instance, what type should exit() or throw() return? They never return control flow to their caller. And since the bottom type is a subtype of every other type, it's perfectly valid for a function returning Int to instead return $bot$—that is, a function returning Int can also choose not to return at all. (Maybe it calls exit(), or maybe it goes into an infinite loop.) This is good to have, because whether a function ever returns or not is famously undecidable.



                      Finally, it's very useful for writing constraints. Suppose you want to constrain all parameters on "both sides", providing a type that must be a supertype of the parameter, and another type that must be a subtype. Since bottom is a subtype of every type, you can express "any subtype of S" as $bot prec T prec S$. Or, you can express "any type at all" as $bot prec T prec top$.






                      share|cite|improve this answer











                      $endgroup$



                      The bottom type is a subtype of every other type, which can be extremely useful in practice. For example, the type of NULL in a theoretical type-safe version of C must be a subtype of every other pointer type, otherwise you couldn't e.g. return NULL where a char* was expected; similarly, the type of undefined in theoretical type-safe JavaScript must be a subtype of every other type in the language.



                      As a function return type, it's also very useful to have certain functions that never return. In a strongly-typed language with exceptions, for instance, what type should exit() or throw() return? They never return control flow to their caller. And since the bottom type is a subtype of every other type, it's perfectly valid for a function returning Int to instead return $bot$—that is, a function returning Int can also choose not to return at all. (Maybe it calls exit(), or maybe it goes into an infinite loop.) This is good to have, because whether a function ever returns or not is famously undecidable.



                      Finally, it's very useful for writing constraints. Suppose you want to constrain all parameters on "both sides", providing a type that must be a supertype of the parameter, and another type that must be a subtype. Since bottom is a subtype of every type, you can express "any subtype of S" as $bot prec T prec S$. Or, you can express "any type at all" as $bot prec T prec top$.







                      share|cite|improve this answer














                      share|cite|improve this answer



                      share|cite|improve this answer








                      edited May 26 at 23:43

























                      answered May 26 at 23:08









                      DraconisDraconis

                      6,0371921




                      6,0371921







                      • 3




                        $begingroup$
                        NULL is a unit type isn't it, distinct from ⊥ which is the empty type?
                        $endgroup$
                        – bdsl
                        May 26 at 23:18










                      • $begingroup$
                        I'm not sure quite what ≺ means in type theory.
                        $endgroup$
                        – bdsl
                        May 26 at 23:18






                      • 1




                        $begingroup$
                        @bdsl The curved operator here is "is a subtype of"; I'm not sure if it's standard, it's just what my professor used.
                        $endgroup$
                        – Draconis
                        May 26 at 23:40






                      • 1




                        $begingroup$
                        @gnasher729 True, but C also isn't particularly type-safe. I'm saying if you couldn't just cast an integer to void*, you'd need a specific type for it that could be used for any pointer type.
                        $endgroup$
                        – Draconis
                        May 26 at 23:42






                      • 2




                        $begingroup$
                        Incidentally, the most common notation I've seen for the subtyping relation is <: e.g. System $F_mathtt<:$.
                        $endgroup$
                        – Derek Elkins
                        May 27 at 1:50












                      • 3




                        $begingroup$
                        NULL is a unit type isn't it, distinct from ⊥ which is the empty type?
                        $endgroup$
                        – bdsl
                        May 26 at 23:18










                      • $begingroup$
                        I'm not sure quite what ≺ means in type theory.
                        $endgroup$
                        – bdsl
                        May 26 at 23:18






                      • 1




                        $begingroup$
                        @bdsl The curved operator here is "is a subtype of"; I'm not sure if it's standard, it's just what my professor used.
                        $endgroup$
                        – Draconis
                        May 26 at 23:40






                      • 1




                        $begingroup$
                        @gnasher729 True, but C also isn't particularly type-safe. I'm saying if you couldn't just cast an integer to void*, you'd need a specific type for it that could be used for any pointer type.
                        $endgroup$
                        – Draconis
                        May 26 at 23:42






                      • 2




                        $begingroup$
                        Incidentally, the most common notation I've seen for the subtyping relation is <: e.g. System $F_mathtt<:$.
                        $endgroup$
                        – Derek Elkins
                        May 27 at 1:50







                      3




                      3




                      $begingroup$
                      NULL is a unit type isn't it, distinct from ⊥ which is the empty type?
                      $endgroup$
                      – bdsl
                      May 26 at 23:18




                      $begingroup$
                      NULL is a unit type isn't it, distinct from ⊥ which is the empty type?
                      $endgroup$
                      – bdsl
                      May 26 at 23:18












                      $begingroup$
                      I'm not sure quite what ≺ means in type theory.
                      $endgroup$
                      – bdsl
                      May 26 at 23:18




                      $begingroup$
                      I'm not sure quite what ≺ means in type theory.
                      $endgroup$
                      – bdsl
                      May 26 at 23:18




                      1




                      1




                      $begingroup$
                      @bdsl The curved operator here is "is a subtype of"; I'm not sure if it's standard, it's just what my professor used.
                      $endgroup$
                      – Draconis
                      May 26 at 23:40




                      $begingroup$
                      @bdsl The curved operator here is "is a subtype of"; I'm not sure if it's standard, it's just what my professor used.
                      $endgroup$
                      – Draconis
                      May 26 at 23:40




                      1




                      1




                      $begingroup$
                      @gnasher729 True, but C also isn't particularly type-safe. I'm saying if you couldn't just cast an integer to void*, you'd need a specific type for it that could be used for any pointer type.
                      $endgroup$
                      – Draconis
                      May 26 at 23:42




                      $begingroup$
                      @gnasher729 True, but C also isn't particularly type-safe. I'm saying if you couldn't just cast an integer to void*, you'd need a specific type for it that could be used for any pointer type.
                      $endgroup$
                      – Draconis
                      May 26 at 23:42




                      2




                      2




                      $begingroup$
                      Incidentally, the most common notation I've seen for the subtyping relation is <: e.g. System $F_mathtt<:$.
                      $endgroup$
                      – Derek Elkins
                      May 27 at 1:50




                      $begingroup$
                      Incidentally, the most common notation I've seen for the subtyping relation is <: e.g. System $F_mathtt<:$.
                      $endgroup$
                      – Derek Elkins
                      May 27 at 1:50











                      1












                      $begingroup$

                      There is one use I can think of, and it's something that has been considered as an improvement to the Swift programming language.



                      Swift has a maybe Monad, spelled Optional<T> or T?. There are many ways to interact with it.




                      • You can use conditional unwrapping like



                        if let nonOptional = someOptional 
                        print(nonOptional)

                        else
                        print("someOptional was nil")



                      • You can use map, flatMap to transform the values


                      • The force unwrap operator (!, of type (T?) -> T) to forcefully unwrap the contents, otherwise triggering a crash


                      • The nil-coalescing operator (??, of type (T?, T) -> T) to take its value or otherwise use a default value:



                        let someI = Optional(100)
                        print(someI ?? 123) => 100 // "left operand is non-nil, unwrap it.

                        let noneI: Int? = nil
                        print(noneI ?? 123) // => 123 // left operand is nil, take right operand, acts like a "default" value


                      Unfortunately, there was no concise way of saying "unwrap or throw an error" or "unwrap or crash with a custom error message". Something like



                      let someI: Int? = Optional(123)
                      let nonOptionalI: Int = someI ?? fatalError("Expected a non-nil value")


                      doesn't compile, because fatalError has type () -> Never (() is Void, Swift' unit type, Never is Swift's bottom type). Calling it produces Never, which isn't compatible with the T expected as a right operand of ??.



                      In an attempt to remedy this, Swift Evolution propsoal SE-0217 - The “Unwrap or Die” operator was put forth. It was ultimately rejected, but it raised interest in making Never be a subtype of all types.



                      If Never was made to be a subtype of all types, then the previous example will be compilable:



                      let someI: Int? = Optional(123)
                      let nonOptionalI: Int = someI ?? fatalError("Expected a non-nil value")


                      because the call site of ?? has type (T?, Never) -> T, which would be compatible with the (T?, T) -> T signature of ??.






                      share|cite|improve this answer









                      $endgroup$

















                        1












                        $begingroup$

                        There is one use I can think of, and it's something that has been considered as an improvement to the Swift programming language.



                        Swift has a maybe Monad, spelled Optional<T> or T?. There are many ways to interact with it.




                        • You can use conditional unwrapping like



                          if let nonOptional = someOptional 
                          print(nonOptional)

                          else
                          print("someOptional was nil")



                        • You can use map, flatMap to transform the values


                        • The force unwrap operator (!, of type (T?) -> T) to forcefully unwrap the contents, otherwise triggering a crash


                        • The nil-coalescing operator (??, of type (T?, T) -> T) to take its value or otherwise use a default value:



                          let someI = Optional(100)
                          print(someI ?? 123) => 100 // "left operand is non-nil, unwrap it.

                          let noneI: Int? = nil
                          print(noneI ?? 123) // => 123 // left operand is nil, take right operand, acts like a "default" value


                        Unfortunately, there was no concise way of saying "unwrap or throw an error" or "unwrap or crash with a custom error message". Something like



                        let someI: Int? = Optional(123)
                        let nonOptionalI: Int = someI ?? fatalError("Expected a non-nil value")


                        doesn't compile, because fatalError has type () -> Never (() is Void, Swift' unit type, Never is Swift's bottom type). Calling it produces Never, which isn't compatible with the T expected as a right operand of ??.



                        In an attempt to remedy this, Swift Evolution propsoal SE-0217 - The “Unwrap or Die” operator was put forth. It was ultimately rejected, but it raised interest in making Never be a subtype of all types.



                        If Never was made to be a subtype of all types, then the previous example will be compilable:



                        let someI: Int? = Optional(123)
                        let nonOptionalI: Int = someI ?? fatalError("Expected a non-nil value")


                        because the call site of ?? has type (T?, Never) -> T, which would be compatible with the (T?, T) -> T signature of ??.






                        share|cite|improve this answer









                        $endgroup$















                          1












                          1








                          1





                          $begingroup$

                          There is one use I can think of, and it's something that has been considered as an improvement to the Swift programming language.



                          Swift has a maybe Monad, spelled Optional<T> or T?. There are many ways to interact with it.




                          • You can use conditional unwrapping like



                            if let nonOptional = someOptional 
                            print(nonOptional)

                            else
                            print("someOptional was nil")



                          • You can use map, flatMap to transform the values


                          • The force unwrap operator (!, of type (T?) -> T) to forcefully unwrap the contents, otherwise triggering a crash


                          • The nil-coalescing operator (??, of type (T?, T) -> T) to take its value or otherwise use a default value:



                            let someI = Optional(100)
                            print(someI ?? 123) => 100 // "left operand is non-nil, unwrap it.

                            let noneI: Int? = nil
                            print(noneI ?? 123) // => 123 // left operand is nil, take right operand, acts like a "default" value


                          Unfortunately, there was no concise way of saying "unwrap or throw an error" or "unwrap or crash with a custom error message". Something like



                          let someI: Int? = Optional(123)
                          let nonOptionalI: Int = someI ?? fatalError("Expected a non-nil value")


                          doesn't compile, because fatalError has type () -> Never (() is Void, Swift' unit type, Never is Swift's bottom type). Calling it produces Never, which isn't compatible with the T expected as a right operand of ??.



                          In an attempt to remedy this, Swift Evolution propsoal SE-0217 - The “Unwrap or Die” operator was put forth. It was ultimately rejected, but it raised interest in making Never be a subtype of all types.



                          If Never was made to be a subtype of all types, then the previous example will be compilable:



                          let someI: Int? = Optional(123)
                          let nonOptionalI: Int = someI ?? fatalError("Expected a non-nil value")


                          because the call site of ?? has type (T?, Never) -> T, which would be compatible with the (T?, T) -> T signature of ??.






                          share|cite|improve this answer









                          $endgroup$



                          There is one use I can think of, and it's something that has been considered as an improvement to the Swift programming language.



                          Swift has a maybe Monad, spelled Optional<T> or T?. There are many ways to interact with it.




                          • You can use conditional unwrapping like



                            if let nonOptional = someOptional 
                            print(nonOptional)

                            else
                            print("someOptional was nil")



                          • You can use map, flatMap to transform the values


                          • The force unwrap operator (!, of type (T?) -> T) to forcefully unwrap the contents, otherwise triggering a crash


                          • The nil-coalescing operator (??, of type (T?, T) -> T) to take its value or otherwise use a default value:



                            let someI = Optional(100)
                            print(someI ?? 123) => 100 // "left operand is non-nil, unwrap it.

                            let noneI: Int? = nil
                            print(noneI ?? 123) // => 123 // left operand is nil, take right operand, acts like a "default" value


                          Unfortunately, there was no concise way of saying "unwrap or throw an error" or "unwrap or crash with a custom error message". Something like



                          let someI: Int? = Optional(123)
                          let nonOptionalI: Int = someI ?? fatalError("Expected a non-nil value")


                          doesn't compile, because fatalError has type () -> Never (() is Void, Swift' unit type, Never is Swift's bottom type). Calling it produces Never, which isn't compatible with the T expected as a right operand of ??.



                          In an attempt to remedy this, Swift Evolution propsoal SE-0217 - The “Unwrap or Die” operator was put forth. It was ultimately rejected, but it raised interest in making Never be a subtype of all types.



                          If Never was made to be a subtype of all types, then the previous example will be compilable:



                          let someI: Int? = Optional(123)
                          let nonOptionalI: Int = someI ?? fatalError("Expected a non-nil value")


                          because the call site of ?? has type (T?, Never) -> T, which would be compatible with the (T?, T) -> T signature of ??.







                          share|cite|improve this answer












                          share|cite|improve this answer



                          share|cite|improve this answer










                          answered May 27 at 15:57









                          AlexanderAlexander

                          38217




                          38217





















                              0












                              $begingroup$

                              Swift has a type "Never" which seems to be quite like the bottom type: A function declared to return Never can never return, a function with a parameter of type Never can never be called.



                              This is useful in connection with protocols, where there may be a restriction due to the type system of the language that a class must have a certain function, but with no requirement that this function should ever be called, and no requirement what the argument types would be.



                              For details you should have a look at the newer posts on the swift-evolution mailing list.






                              share|cite|improve this answer









                              $endgroup$








                              • 7




                                $begingroup$
                                "Newer posts on the swift-evolution mailing list" is not a very clear or stable reference. Is there not a web archive of the mailing list?
                                $endgroup$
                                – Derek Elkins
                                May 27 at 2:10















                              0












                              $begingroup$

                              Swift has a type "Never" which seems to be quite like the bottom type: A function declared to return Never can never return, a function with a parameter of type Never can never be called.



                              This is useful in connection with protocols, where there may be a restriction due to the type system of the language that a class must have a certain function, but with no requirement that this function should ever be called, and no requirement what the argument types would be.



                              For details you should have a look at the newer posts on the swift-evolution mailing list.






                              share|cite|improve this answer









                              $endgroup$








                              • 7




                                $begingroup$
                                "Newer posts on the swift-evolution mailing list" is not a very clear or stable reference. Is there not a web archive of the mailing list?
                                $endgroup$
                                – Derek Elkins
                                May 27 at 2:10













                              0












                              0








                              0





                              $begingroup$

                              Swift has a type "Never" which seems to be quite like the bottom type: A function declared to return Never can never return, a function with a parameter of type Never can never be called.



                              This is useful in connection with protocols, where there may be a restriction due to the type system of the language that a class must have a certain function, but with no requirement that this function should ever be called, and no requirement what the argument types would be.



                              For details you should have a look at the newer posts on the swift-evolution mailing list.






                              share|cite|improve this answer









                              $endgroup$



                              Swift has a type "Never" which seems to be quite like the bottom type: A function declared to return Never can never return, a function with a parameter of type Never can never be called.



                              This is useful in connection with protocols, where there may be a restriction due to the type system of the language that a class must have a certain function, but with no requirement that this function should ever be called, and no requirement what the argument types would be.



                              For details you should have a look at the newer posts on the swift-evolution mailing list.







                              share|cite|improve this answer












                              share|cite|improve this answer



                              share|cite|improve this answer










                              answered May 26 at 23:21









                              gnasher729gnasher729

                              13.3k1824




                              13.3k1824







                              • 7




                                $begingroup$
                                "Newer posts on the swift-evolution mailing list" is not a very clear or stable reference. Is there not a web archive of the mailing list?
                                $endgroup$
                                – Derek Elkins
                                May 27 at 2:10












                              • 7




                                $begingroup$
                                "Newer posts on the swift-evolution mailing list" is not a very clear or stable reference. Is there not a web archive of the mailing list?
                                $endgroup$
                                – Derek Elkins
                                May 27 at 2:10







                              7




                              7




                              $begingroup$
                              "Newer posts on the swift-evolution mailing list" is not a very clear or stable reference. Is there not a web archive of the mailing list?
                              $endgroup$
                              – Derek Elkins
                              May 27 at 2:10




                              $begingroup$
                              "Newer posts on the swift-evolution mailing list" is not a very clear or stable reference. Is there not a web archive of the mailing list?
                              $endgroup$
                              – Derek Elkins
                              May 27 at 2:10

















                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Computer Science Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              Use MathJax to format equations. MathJax reference.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcs.stackexchange.com%2fquestions%2f109897%2fis-there-any-use-case-for-the-bottom-type-as-a-function-parameter-type%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

                              Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

                              Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020