Comment

Comment by sergiotapia

I thought pattern matching in C# would look like pattern matching in Elixir. For example, two functions with different signatures run based on the parameters you give it.

    def hello("sergio") do
      IO.puts "Hello Sergio"
    end

    def hello(name) do
      IO.puts "Hello #{name}"
    end

    ---

    hello("sergio") => "Hello Sergio"
    hello("mia") => "Hello mia"
parent sergiotapia 10 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton