Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #30603

Re: An "if" without "if"

Newsgroups comp.lang.javascript
Date 2016-06-02 00:20 -0700
References <if-20160602002158@ram.dialup.fu-berlin.de> <3829264.ZeLUznL4Fb@PointedEars.de>
Message-ID <12856f6f-a2fd-4a6a-b771-17ef64af36e3@googlegroups.com> (permalink)
Subject Re: An "if" without "if"
From "Michael Haufe (TNO)" <tno@thenewobjective.com>

Show all headers | View raw


Stefan Ram wrote 
>   Could I use arrow functions to emulate an »if«?

Yes, among many other things. What you're looking for is referred to as a Church Encoding:

<https://en.wikipedia.org/wiki/Church_encoding>

But why would you want to? 

Back to comp.lang.javascript | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: An "if" without "if" Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-06-02 02:08 +0200
  Re: An "if" without "if" "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-06-02 00:20 -0700

csiph-web