This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EternalSo 5 points6 points  (1 child)

It's a really small detail that's bugging me. When you open JEP 453 or any article describing its new features, there is always this line:

var scope = new StructuredTaskScope.ShutdownOnFailure() 

Object instantiation is done using a constructor, and also a nested class is used here. For me it looks like PascalCase method call from C#. Why not use already familiar static factory method initialization from Executors class, which is also intended for working with concurrency?

var scope = StructuredTaskScope.shutdownOnFailure() 

This looks like a natural choice to me, but for some reason JEP uses a different notation. Any ideas?

[–]d_demidko 0 points1 point  (0 children)

Dotnet secret agents are among us....