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


Groups > comp.lang.javascript > #30600 > unrolled thread

Re: An "if" without "if"

Started byThomas 'PointedEars' Lahn <PointedEars@web.de>
First post2016-06-02 02:08 +0200
Last post2016-06-02 00:20 -0700
Articles 2 — 2 participants

Back to article view | Back to comp.lang.javascript

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  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

#30600 — Re: An "if" without "if"

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2016-06-02 02:08 +0200
SubjectRe: An "if" without "if"
Message-ID<3829264.ZeLUznL4Fb@PointedEars.de>
Stefan Ram wrote:

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

Yes, but that is a stupid idea.
 
-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

[toc] | [next] | [standalone]


#30603

From"Michael Haufe (TNO)" <tno@thenewobjective.com>
Date2016-06-02 00:20 -0700
Message-ID<12856f6f-a2fd-4a6a-b771-17ef64af36e3@googlegroups.com>
In reply to#30600
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? 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web