JEP505: Question on naming Subtask
Viktor Klang
viktor.klang at oracle.com
Tue May 20 09:54:58 UTC 2025
Hi
Thanks for the question!
The explanation is that a subtask is a noun: https://www.merriam-webster.com/dictionary/subtask
[https://merriam-webster.com/assets/mw/static/social-media-share/mw-logo-245x245@1x.png]<https://www.merriam-webster.com/dictionary/subtask>
SUBTASK Definition & Meaning - Merriam-Webster<https://www.merriam-webster.com/dictionary/subtask>
The meaning of SUBTASK is a task that is part of a more complex task. How to use subtask in a sentence.
www.merriam-webster.com
Cheers,
√
Viktor Klang
Software Architect, Java Platform Group
Oracle
________________________________
From: loom-dev <loom-dev-retn at openjdk.org> on behalf of vab2048 <vab2048 at gmail.com>
Sent: Tuesday, 20 May 2025 11:33
To: loom-dev at openjdk.org <loom-dev at openjdk.org>
Subject: JEP505: Question on naming Subtask
Hello,
The code example given for JEP505 had a small but jarring feature for me: the Subtask type does not capitalize the T in task. Any reason it is not “SubTask”?
This is in contrast to what I would expect as StructuredTaskScope has the T capitalized.
A quick search of “Sub” in java code on the github openjdk repo gives the following usages: “SubKind”, “SubMapIterator”, “subMap”, “subSequence”.
there also seems to be some non-capitalized usage e.g. “substring” but it is fewer in number.
I realise this is superficial feedback but thought I would provide it anyway. There will likely be questions on why it goes against the convention of what a java dev like myself expects. But maybe I just inferred a convention when none actually existed.
Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20250520/01e67a90/attachment.htm>
More information about the loom-dev
mailing list