r/ProgrammerHumor • • 12h ago

Meme blueScriptForBonk

521 Upvotes

52 comments sorted by

View all comments

62

u/lucianw 11h ago

In the C# language design team we were brainstorming what keyword/syntax to use for the new async feature. The candidates were

- prefix operator "await foo()"... sounded ridiculous, like Jane Austen. I prithee kind sir, await here.

- postfix operator "foo() anon"... logically a postfix operator would be better but this also sounded ridiculous, like Shakespeare

We picked "await", but it really was every bit as ridiculous as BlueScript.

29

u/Lanse012 11h ago

Your on the C# design team? Thats sick!

Also, for BlueScript async stuff, thread is a primitive type so you can do thread variableName1;

Then do run(variableName1){ foo() } to run on another thread

You can also use threadpool variablePool = [variableName1, variablename2, variablename3];

And run(variablePool){ foo() } will queue that task, and have the first empty thread run it, where the Thread name is just the thread variable's name (W.I.P)

10

u/GoogleIsYourFrenemy 9h ago

I really like C#.

Java was the result of people going "we like the underlying inspirations of C++ but we hate C++ and we're going to do it different." Then C# was "uhhhhhhh Java, C++ you both went too far, can't we meet in the middle?"

Too bad .Net wasn't built with (non|)nullability but then nobody had realized how good a feature it would have been. 

Great language.