Skip to content

Documentation: Typo  #13342

@shukanov-artyom

Description

@shukanov-artyom

"C# similarities and differences" document ( https://github.com/rsdn/nemerle/wiki/CSharp-Similarities-and-Differences ) contains a typo:

the following C# code:

if (cond)
return foo;
do_something ();
return bar;

Corresponds to the following Nemerle code:

match(cond){
| true => foo
| _ => {doSomething(); foo}
}

While a correct version is:

match(cond){
| true => foo
| _ => {doSomething(); bar}
}

Obviously "foo" should not be returned in both cases, the second case must return "bar"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions