tiflolinux.org - GNU Social
  • Login

Bienvenido

  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Ekaitz Zárraga 👹 (ekaitz_zarraga@mastodon.social)'s status on Wednesday, 06-Mar-2019 10:22:49 CET Ekaitz Zárraga 👹 Ekaitz Zárraga 👹

    Why would anyone code in #R ?

    In conversation Wednesday, 06-Mar-2019 10:22:49 CET from mastodon.social permalink
    • Ekaitz Zárraga 👹 (ekaitz_zarraga@mastodon.social)'s status on Wednesday, 06-Mar-2019 10:37:55 CET Ekaitz Zárraga 👹 Ekaitz Zárraga 👹
      in reply to

      I mean "<-"

      WHAT THE FUCK IS THIS?

      Go home R, you are drunk.

      In conversation Wednesday, 06-Mar-2019 10:37:55 CET permalink
    • alan@mastodon.technology's status on Wednesday, 06-Mar-2019 11:52:12 CET alan alan
      in reply to

      @ekaitz_zarraga <- is used to distinguish name assignment from keyword arguments assignment in function calls. f(k = 1, z = y <- 3) will work as expected with the z argument having y as value that will be resolved to 3.

      There are historical reasons for this and one of them is that R is lispy enough to have similar quirks. The issue is that most R users are not trained to code in a functional way, but you can do pretty powerful stuff with it.

      With RStudio alt + - gives you <-

      In conversation Wednesday, 06-Mar-2019 11:52:12 CET permalink
      Ekaitz Zárraga 👹 and Ekaitz Zárraga 👹 repeated this.
    • Ekaitz Zárraga 👹 (ekaitz_zarraga@mastodon.social)'s status on Wednesday, 06-Mar-2019 11:54:50 CET Ekaitz Zárraga 👹 Ekaitz Zárraga 👹
      in reply to
      • alan

      @alan Thanks for the explanation. It's really cool.

      It's quite a weird syntax isn't it?

      I'm now very critic with all this because I discovered lisp and everything is worse.

      Yes, the most logical syntax I know is lisp's. I'm that kind of person.

      In conversation Wednesday, 06-Mar-2019 11:54:50 CET permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.