Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

iSURG

  1. Home
  2. jet's interesting finds
  3. Is Rust functional? [Blog]

Is Rust functional? [Blog]

Scheduled Pinned Locked Moved jet's interesting finds
interesting
1 Posts 1 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J This user is from outside of this forum
    J This user is from outside of this forum
    jet@hackertalks.com
    wrote last edited by
    #1

    What is functional programming?

    I’ve answered this question in at least one talk in the past, but to my recollection I haven’t done so in blog post form yet. I don’t believe there is any universally agreed upon definition of what makes a language “functional.” To demonstrate:

    Is Javascript functional? Many people successfully leverage higher-order functions, and functions are first class values. Also, by this metric, even C is a functional programming language (though it lacks closures).

    Haskell is a purely functional programming language, since all functions are pure. Instead of allowing effects to occur in functions, we create actions which, when run, perform these effects. And then we use the type system to distinguish these effects from pure values. Is that the bar for functional programming? If so, many presumably functional languages like OCaml wouldn’t meet the bar, so that’s not great.

    I’ve seen people call XSLT a functional programming language since it’s declarative. But most users of functional programmers would be surprised to use a functional programming language where it’s difficult and/or impossible to create user-defined functions.
    

    Great read on the boarder of functional paradigm vs pure functional languages (Where is Haskell on this scale?)

    Link Preview Image
    Is Rust functional?

    Rust is an imperative systems programming language. Why does it have so much attention from functional programming advocates? Is it hiding a functional nature?

    favicon

    FP Complete (academy.fpblock.com)

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups