mudrz/AspNetCorePostgreSQLDocker 0

ASP.NET Core Docker EF Core

mudrz/benchmarks 0

Fast and low overhead web framework fastify benchmarks.

mudrz/colonizers 0

Based on "The Settlers of Catan" by Klaus Teuber.

mudrz/core 0

KitchenPC core engine and database adapter

mudrz/eschersketch 0

A drawing program for exploring symmetrical designs

mudrz/eShopOnContainers 0

Easy to get started sample reference microservice and container based application. Cross-platform on Linux and Windows Docker Containers, powered by .NET Core 2.0 and Docker engine. Supports Visual Studio 2017, VS for Mac and CLI based environments with Docker CLI, dotnet CLI, VS Code or any other code editor.

mudrz/fluent-command-line-parser 0

A simple, strongly typed .NET C# command line parser library using a fluent easy to use interface

mudrz/FrameworkBenchmarks 0

Source for the TechEmpower Framework Benchmarks project

mudrz/ 0

A small .NET package to generate YouTube-like hashes from one or many numbers. Use hashids when you do not want to expose your database ids to the user.

mudrz/informer 0

A Telegram Mass Surveillance Bot in Python


issue commenttc39/proposal-pattern-matching

Unified pattern matching and destructuring syntax

Conditional if let expressions are great for compact and readable code without the need to introduce variable in outer scope.


comment created time in 2 days

push eventtc39/proposal-pattern-matching

David Luzar

commit sha 60a744a4231dac8a47264e708edf03fdb245fb4c

fix Kat Marchán's twitter handle

view details

push time in 4 days

issue openedtc39/proposal-pattern-matching

Shorter switch statements

Switch statements are really cool, but it'd be nice if they could be shorter for one-line-code-actions.

Say we have a switch statement:

switch (foo) {
    case bar:

    case bar1:

    case bar2:

        console.log("neither bar, bar1 or bar2")

And for one line actions per case, this just gets overwhelming. I suggest that short switch statements get added. An equivalent of that code above should look like this, shortened:

// Concept of what it would look like.
switch (foo) {
    bar => console.log("bar1"), // Probably a comma to separate other statements or none at all requiring a new line instead.
    bar1 => console.log("bar1"),
    bar2 => console.log("bar2"),
    _ => console.log("neither bar, bar1 or bar2") // An underscore for the default case or just the default keyword itself.

We cab go one step further and inherit this from C# ():

// Concept of what it would look like.
function foo(bar) {  
    return bar switch { /*Code*/ }

What this'll do is return bar (a variable declared somewhere) in a switch, as in.. a value depending upon the value of bar.

That'd make the code look a lot cleaner.

created time in 24 days

issue commenttc39/proposal-pattern-matching

Champion update

Champions list in readme seems to be outdated.


comment created time in 2 months