Skip to content

rensvmoorsel/FuckAround

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FuckAround

FuckAround is a library to use a funny notation for try and catch blocks. Examples:

using FuckAroundFindOut;

new FuckAround(() =>
    {
        throw new Exception("This is an exception");
    })
    .FindOut(() =>
    {
        Console.WriteLine($"sytem exception: {e.Message}");
    })
    .Yolo();
using FuckAroundFindOut;

FuckAround fuckAround = new FuckAround(() =>
    {
        throw new SystemException("This is an exception");
    })
    .FindOut<Exception>(e =>
    {
        Console.WriteLine($"Exception: {e.Message}");
    })
    .FindOut<SystemException>(e =>
    {
        Console.WriteLine($"System exception: {e.Message}");
    });
    
fuckAround.Yolo();
using FuckAroundFindOut;

FuckAround fuckAround = new FuckAround(() =>
    {
        throw new SystemException("This is an exception");
    });
    
fuckAround.FindOut<Exception>(e =>
    {
        Console.WriteLine($"Exception: {e.Message}");
    });
    
fuckAround.Yolo();

Based on https://classic.yarnpkg.com/en/package/fuck-around-and-find-out

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages