JEP505: Question on naming Subtask
vab2048
vab2048 at gmail.com
Tue May 20 09:33:54 UTC 2025
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,
More information about the loom-dev
mailing list